Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 507 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 507 Bytes

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