CLI tool for adding fields to your package.json
Install globally
npm install -g pkg-field
Install locally
npx pkg-field
Adds test
script to your package.json
npx pkg-field scripts.test jest
Results:
{
...
"scripts": {
...
"test": "jest"
},
...
}
MIT