Skip to content

DIegoLOL-Code/onpm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offline Npm Manager

NPM module installer without internet connection.

Setup

npm i -g onpm@github:RodnyE/onpm

Now, onpm is ready to use. It will make available the onpm command.

To check if everything went well, run:

onpm --version

CLI

download

onpm download [<package-spec> ...] [flags]

"NPM Offline" cannot work if you don't have modules downloaded.

For example:

onpm download express

After completing this process, the downloaded modules will be available to install them offline as many times as you want in other projects. If you do not specify any modules, the ones specified in the package.json will be downloaded to the cache.

Flags:

flag desc
--prod, --production Download only package.json dependencies
-f, --fast Download all modules quickly and directly in a single process

install

onpm install [<package-spec> ...] [flags]

Similar to the npm install command, this is the command to install the modules in your NodeJs project, with the slight difference that it will no longer be from the internet. If you do not specify any modules, the ones specified in the package.json will be installed.

Example if you want to install the express and moment modules:

onpm install express moment --save

Flags:

flag desc
-S, --save installs and add to package.json dependencies
--save-dev installs and add to package.json devDependencies
--no-save installs but doesn't add them to package.json
--prod, --production installs only package.json dependencies

For more information, execute onpm -h

Code By RodnyE

About

Offline NPM module installer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%