locpm
v1.0.7
Published
This program allows developer to save already installed node.js packages from other projects and use them offline.
Readme
📦 LOCPM
This is a CLI software that allows you to save and reuse your already installed npm packages locally.
- Ultra-fast installation without internet
- Save bandwidth and time
- Ideal for secure/offline environments
- No more panic when npm is down or removes a package
Installation
npm i -g locpmUsage
locpm [options] [command]Example
Save all the installed packages in an existing project. Then, create a new npm project and install the needed dependencies.
# go to an existing project
cd existing-project
# save the dependencies
locpm save
# Let's create a new project now
cd ..
mkdir new-project
cd new-project
# Installation
# initialize an npm project first
npm init -y
# install needed dependencies
locpm install pkg-a pkg-b@latest
# you can also use option
locpm install --save-dev pkg-x [email protected]
# use the --help option to view help
locpm --helpContributing
The LOCPM project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!
Running Tests
To run the test suite, first install the dependencies:
npm installThen run npm test:
npm testNOTE: The tests are still under development. Contributions are welcome to improve them.
License
MIT
