modify-pkg-up

Helps you modify nearest `package.json`

Not maintained.
Last updated 15 days ago by mightyiam .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install modify-pkg-up 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.0.0                                ...           latest (15 days ago)

3 Versions

  • 3.0.0 [deprecated]           ...           15 days ago
  • 2.0.0 [deprecated]           ...           15 days ago
  • 1.0.1 [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 41
Dependencies (2)
Dev Dependencies (10)

Copyright 2014 - 2016 © taobao.org |