acorn-object-rest-spread

JSON →
library 1.1.0 ·javascript maintenance
verified Jun 7, 2026

Acorn plugin that adds support for the Object Rest/Spread Properties proposal (e.g., `let { x, y, ...z } = obj`) to Acorn 5. Version 1.1.0 is the latest and only stable release. It is a lightweight, single-purpose plugin that must be injected into an Acorn instance via `require('acorn-object-rest-spread/inject')`. Compared to other parsers like Babel, this plugin keeps Acorn minimal and fast. No updates since 2017; compatible with Acorn 5.x only.