0.1.0 • Published 10 years ago

node-prefix v0.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

node-prefix

Refer to nodejs configuration prefix and global module install path

Installation

$ npm install node-prefix

Example

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