https://github.com/matype/node-prefix
Refer to nodejs configuration prefix and global module install path
https://github.com/matype/node-prefix
Last synced: 9 months ago
JSON representation
Refer to nodejs configuration prefix and global module install path
- Host: GitHub
- URL: https://github.com/matype/node-prefix
- Owner: matype
- License: other
- Created: 2014-06-04T16:19:06.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-04T16:33:36.000Z (about 12 years ago)
- Last Synced: 2025-02-03T20:50:22.051Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
- License: LICENSE
Awesome Lists containing this project
README
# node-prefix
Refer to nodejs configuration prefix and global module install path
## Installation
```shell
$ npm install node-prefix
```
## Example
```javascript
var config = require('node-prefix')
var nodePrefix = config.prefix()
// '/usr/local/lib'
var globalModulePath = config.global('moduleName')
// '/usr/local/lib/node_modules/moduleName'
```
## License
The MIT License (MIT)
Copyright (c) 2014 Masaaki Morishita