npm.io
1.0.1 • Published 8 years ago

load-pkg-config

Licence
MIT
Version
1.0.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0

load-pkg-config

Load the package.json for a module currently installed in node_modules, or at the given cwd.

Install

Install with npm:

$ npm install --save load-pkg-config

Usage

var load = require('load-pkg-config')
var pkg = load('kind-of')
console.log(pkg.name)
//=> 'kind-of'

var pkg = load('./foo', 'your/cwd')
console.log(pkg.name)
//=> 'your module'

Keywords