A small utility to compile ES6 rest parameters (function(...args)) down to ES3-compatible code using `[].slice.call(arguments, 1)`. Version 0.3.1 is the latest release; the package has been in maintenance mode since 2016 and is not actively developed. It uses Facebook's jstransform internally and supports source maps via options. For modern projects, Babel or TypeScript are preferred, but this package remains useful for legacy setups or learning.
npm install es6-rest-paramsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and use compile to transform ES6 rest params to ES3 with source map support.
Use a full transpiler like Babel for ES6+ features.
Migrate to Babel or TypeScript.
Ensure input is a JavaScript source string.
Use `import { compile } from 'es6-rest-params'` or `const { compile } = require('es6-rest-params')`.Verify input string is non-empty and contains valid JavaScript.