edit-package

Read, write and reset package.json

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
edit-package
33161.0.35 years ago6 years agoMinified + gzip package size for edit-package in KB

Readme

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()