Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

edit-package

1.0.3 • Public • Published

edit-package

Read, write and reset package.json

const {
    read,
    write,
    reset,
} = require('edit-package')
 
const { version } = await read()
 
// Change a value
await write({publishConfig: {tag: 'next'}})
 
// Reset to original value
 
await reset()

Keywords

none

Install

npm i edit-package

DownloadsWeekly Downloads

527

Version

1.0.3

License

MIT

Unpacked Size

3.62 kB

Total Files

7

Last publish

Collaborators

  • avatar