Skip to content
/ onmi Public

install node_modules without an internet connection

License

Notifications You must be signed in to change notification settings

echo-64/onmi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onmi

Offline Node Module installer - cli tool for installing Node modules and their
dependencies from any project or pre-installed local modules, without an internet connection

Install

npm install --location=global onmi

Options

-i, --install    Add the module to the 'dependencies' field in the package.json.
-D, --save-dev   Add the module to the 'devDependencies' field in the package.json.
-f, --from       The directory where the required module is installed (copying the module from).
-t, --to         The directory where the module will be installed (copying the module to).
-v, --version    Bump a package version.
-h, --help       More involved overview.

Usage

Install sass as a dependency and gulp, gulp-postcss, cssnano as dev dependencies from ~/prevProject to ~/currProject

onmi -i sass -D gulp,gulp-postcss,cssnano -f ~/prevProject -t ~/currProject

if ~/currProject doesn't exist, node_modules or package.json doesn't exist
onmi will notify you, do i create them automatically or cancel?

pressing y will

  1. Create ~/currProject, node_modules or package.json.
  2. Copy the required modules and their dependencies to the node_modules folder.
  3. Write { dependencies: {...}, devDependencies: {...} } to package.json
    or add sass to dependencies field and gulp, gulp-postcss, cssnano to devDependencies field.

What's next

You tell me!
Hit the ⭐ button if you found this useful.

License

This project is licensed under the MIT license - see the LICENSE file for details

About

install node_modules without an internet connection

Resources

License

Stars

Watchers

Forks