Tiny command line utility for plucking fields from a JSON file
npm install --save-dev pilfer-package
oryarn add --dev pilfer-package
- Add to your npm scripts, or use in the CLI directly
pilfer-package <field1> <field2> ... <fieldN>
e.g. pilfer-package version > version.json
will create a file called version.json
in the current directory containing:
{
version: "1.0.0"
}