https://github.com/commenthol/require-global-npm
require npm from the global install
https://github.com/commenthol/require-global-npm
Last synced: 12 days ago
JSON representation
require npm from the global install
- Host: GitHub
- URL: https://github.com/commenthol/require-global-npm
- Owner: commenthol
- License: unlicense
- Created: 2018-02-03T08:10:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T20:06:16.000Z (about 7 years ago)
- Last Synced: 2025-10-18T11:01:42.013Z (8 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# require-global-npm
> require npm from the global install
No need to install `npm` in your project as it's already here...
## Usage
e.g. running `npm info require-global-npm` without cli
```js
var requireNpm = require('require-global-npm')
var npm = requireNpm()
npm.load((err, _npm) => {
_npm.commands.info(['require-global-npm'], (err, data) => {
// ...
})
})
```
## Installation
Requires [nodejs](http://nodejs.org/).
```sh
$ npm install require-global-npm
```
## Tests
```sh
$ npm test
```
## License
Unlicense