node-prefix

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-prefix

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • morishitter