Declare and install Babel plugins and presets via CLI or programmatically. Current version 2.1.0. It automatically adds plugins/presets to .babelrc and installs npm packages, with shorthand CLI flags via yargs-parser. Warns on duplicate modules. Limited maintenance (last release 2016). Alternative to manual config edits for Babel 6.x era.
npm install babel-installVerified import paths — ran on the pinned version, not inferred.
Install babel-install and use CLI to add presets/plugins to .babelrc and package.json.
Use @babel/core and manual configuration or tools like babel-preset-env.
Use callback or wrap in promise; v1: BabelInstaller.installAndDeclare(plugins) (returns undefined).
Always verify package names; use full names for non-standard packages.
Run `npm i babel-install -DE` in project root, then add `node_modules/.bin` to PATH or use npx babel-install.
Run `export PATH=./node_modules/.bin:$PATH` or use `npx babel-install` instead.
Use `import BabelInstaller from 'babel-install'` then `BabelInstaller().installAndDeclare(...)`.
No dependency data recorded yet.