Skip to content

akgondber/npm-install-and-import-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published