1.0.0 • Published 3 months ago

npm-install-and-import-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

npm-install-and-import-cli NPM version

Get rid of if statements in your code by using convenient api

Install

npm install -g npm-install-and-import-cli

or

yarn add --global npm-install-and-import-cli

CLI

$ npm-install-and-import-cli --help

CLI utility to install a package and add import statement to specified file

Usage
    $ npm-install-and-import
	$ npmii

Options
    --name, -n     Package to install
    --filename, -f Filename where you want to add import statement to

Examples
    $ npm-install-and-import
    $ npm-install-and-import --name consola
    $ npm-install-and-import --name consola --filename src/ui.js

Demo

package-demo

License

MIT © Rushan Alyautdinov