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
npm install --location=global onmi
-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.
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
- Create
~/currProject,node_modulesorpackage.json. - Copy the required modules and their dependencies to the
node_modulesfolder. - Write
{ dependencies: {...}, devDependencies: {...} }topackage.json
or add sass to dependencies field and gulp, gulp-postcss, cssnano to devDependencies field.
You tell me!
Hit the ⭐ button if you found this useful.
This project is licensed under the MIT license - see the LICENSE file for details