An open API service indexing awesome lists of open source software.

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

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