2.4.6 • Published 4 months ago

onpm-cli v2.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

onpm

Offline Npm Manager is a command line tool that allows you to install and manage NPM modules without an internet connection.

Get Started

To install Offline Npm Manager, run the following command:

npm i -g onpm-cli

Once installed, you can use the onpm command.

To verify the installation, run:

onpm --version

CLI

📥 Download and save in cache

To use Offline Npm Manager, you need to download the required modules first. Use the following command:

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

If no modules are specified, it will download the modules specified in the package.json file.

For example:

onpm download express

After downloading the modules, they will be available for offline installation in other projects.

Flags:

FlagDescription
--prod, --productionDownload only package.json dependencies
-f, --forceDownload all modules ignoring if already downloaded
--fastDownload all modules quickly in a single process

💽 Install a module

To install the downloaded modules in your NodeJs project, use the following command:

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

If no modules are specified, it will install the modules specified in the package.json file.

For example, to install the express and moment modules:

onpm install express moment --save

Flags:

FlagDescription
-S, --saveInstall and add to package.json dependencies
-D, --save-devInstall and add to package.json devDependencies
-N, --no-saveInstall without adding to package.json

For more information, execute onpm -h

Contributions

Contributions are welcome! If you encounter any issues or have improvements in mind, feel free to open a new issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Created by Rodny Estrada.

2.4.6

4 months ago

2.4.5

10 months ago

2.4.4

10 months ago

2.4.3

10 months ago