modify-pkg-up
Helps you modify nearest `package.json`
Last updated 3 years 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((pkg) => {
  return Object.assign(pkg, {
    //
  })
}).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

  • 1.0.1                                ...           latest (3 years ago)

1 Versions

  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |