load-pkg-config

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
load-pkg-config
1.0.16 years ago6 years agoMinified + gzip package size for load-pkg-config in KB

Readme

load-pkg-config
Load the package.json for a module currently installed in nodemodules, 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'