Inline things from your package.json without including all the package.json.
You can require
package.json with browserify since it is a JSON as follows:
this is often an overkill since it will include all the package.json file and most of the time you only need things like the
exports.version = require('./package.json').version;
With this transforms you can use:
exports.version = require('package.version');
and it will transform to:
exports.version = '1.0.20';
Any field works for instance
exports.author = require('package.author'); exports.license = require('package.license');
npm i packageify --save-dev
Then add the transform as any other transform.
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
This project is licensed under the MIT license. See the LICENSE file for more info.