npm-install-and-import-cli

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i npm-install-and-import-cli

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.19 kB

Total Files

3

Last publish

Collaborators

  • sinventor