Skip to content

masaakim/node-prefix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Refer to nodejs configuration prefix and global module install path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published