brpkg

inlines required package.json

npm install brpkg
2 downloads in the last week
5 downloads in the last month

brpkg

browserify plugin that inlines things like require('../package.json').version

example

for a main.js:

console.log(require('../package.json').version);

and a package.json:

{
    "name": "beep",
    "version": "1.0.0"
}

turns into:

console.log("1.0.0");

license

MIT

npm loves you