pkg-field

CLI tool for adding fields to your package.json

Usage no npm install needed!

<script type="module">
  import pkgField from 'https://cdn.skypack.dev/pkg-field';
</script>

README

pkg-field Build Status PRs Welcome

CLI tool for adding fields to your package.json

Install

Install globally

npm install -g pkg-field

Install locally

npx pkg-field

Usage

Adds test script to your package.json

npx pkg-field scripts.test jest

Results:

{
  ...
  "scripts": {
    ...
    "test": "jest"
  },
  ...
}

License

MIT