onmi

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i onmi

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

11.1 kB

Total Files

10

Last publish

Collaborators

  • echo-64