This package has been deprecated

Author message:

Not maintained.

modify-pkg-up

3.0.0 • Public • Published

Build Status JavaScript Style Guide

modify-pkg-up

Helps you modify the nearest package.json

Why?

How?

Example

const modifyPkgUp = require('modify-pkg-up')
modifyPkgUp((packageJson) => {
  return Object.assign(packageJson, {
    //
  })
}).then(() => console.log('done'))

API

modifyPkgUp(modifierFn)

  • modifierFn: A function that receives the current contents of package.json. It may return the new contents, or a promise for them.

Returns an empty promise.

Readme

Keywords

Package Sidebar

Install

npm i modify-pkg-up

Weekly Downloads

0

Version

3.0.0

License

ISC

Unpacked Size

3.94 kB

Total Files

4

Last publish

Collaborators

  • mightyiam