0.0.2 • Published 12 years ago

module-tidyup v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

module-tidyup

Build Status

A simple utility to tidy up Node.js module package.json before publishing

Why?

Before we publish a module to npm registry, typically there are a few things that requires tidy-up.

  • The module version
  • The license
  • Dependencies that use internal git/http urls
  • Set private to be false

Install

npm install -g module-tidyup

Usage

tidyup [-i] [-u] [-d] [-v version] [-l license]

Options:

  • -i: Run npm install -f first to refresh the dependencies
  • -u: Update the package.json, if not set, the revised content is dumped to stdout
  • -d: Update dependencies for 'latest' or git/http urls, default to true
  • -v version: Update the version, use 'major'/'minor'/'patch'/'prerelease' to increment, default to '1.0.0'
  • -l license: Update the license, default to 'MIT'

What does it do?

  • Run npm install -f (if -i)
  • Run npm ls --json
  • Open package.json and tidy it up
  • Write the result back to package.json (if -u)

License

MIT