https://github.com/japrozs/nlr
Nlr (Node module resolver) is a command line utility that stores npm modules in a safe place and prevetn your from installing the same module for different projects again and again
https://github.com/japrozs/nlr
Last synced: 4 months ago
JSON representation
Nlr (Node module resolver) is a command line utility that stores npm modules in a safe place and prevetn your from installing the same module for different projects again and again
- Host: GitHub
- URL: https://github.com/japrozs/nlr
- Owner: japrozs
- License: mit
- Created: 2021-07-19T17:36:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-21T06:28:20.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T06:48:26.828Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Nlr

Nlr (`Node module resolver`) is a command line utility that stores `npm` modules in a safe place and prevetn your from installing the same module for different projects again and again.## Aim
`nlr` is aimed for reducing the space hogged by the `node_modules` folder in ever `node.js` project.
## Installation
To install `nlr`, enter the following command in the terminal:
```bash
npm install -g nlr
```## Usage
To use `nlr` you have to install package globally, and then `add` them to your project.
For example, if you want to use the `commander` module in your project, you will have to install the `commander` module to your system through the following command:
```bash
nlr install commander
```The above command can be run form anywhere in the terminal.
To use the module in your project, run the following command inside of your project directory:
```bash
npm init -y
nlr add commander
```That's it. Your ready to use `commander`. You can use it in your project and import it normally
```javascript
const { program } = require("commander");
// import { program } from "commander" // If you are using ES6 syntax
// ...
```## Contributing
We love adding new features to our projects. If you have a new idea, a new bug report or a feature request, please feel free to create a new `issue` and explain.
## License : `MIT`