Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including pkjutil with all npm packages installed. Try it out:

var pkjutil = require("pkjutil")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

pkjutil v1.0.1

Package.json utility tool

Avatar

Build Status Dependencies Status Coverage Status Published Version
npm Badge

PkjUtil

PkjUtil is a package.json utility tool.

This is handy for upgrading major/minor/patch version in package.json file, and also to upgrade all dependencies to latest version.

Installation

npm install -g pkjutil

Usage

Upgrade patch version number:

pkjutil upgrade-version

Upgrade minor version number with custom package.json file path:

pkjutil upgrade-version-minor --file /tmp/package.json

Upgrade major version number:

pkjutil upgrade-version-major

Upgrade dependencies:

pkjutil upgrade-dependencies

Upgrade dependencies using custom registry:

pkjutil upgrade-dependencies --registry http://someregistry

List dependencies:

pkjutil list-dependencies

List dev dependencies:

pkjutil list-devdependencies

List peer dependencies:

pkjutil list-peerdependencies

List optional dependencies (non-standard property in package.json):

pkjutil list-optdependencies

List dependencies and dev dependencies:

pkjutil list-alldependencies

Sort dependencies:

pkjutil sort-dependencies

Sort dev dependencies:

pkjutil sort-devdependencies

Sort peer dependencies:

pkjutil sort-peerdependencies

Sort optional dependencies (non-standard property in package.json):

pkjutil sort-optdependencies

Sort dependencies and dev dependencies:

pkjutil sort-alldependencies

Traverse dependencies, similar to 'npm ls' but listing dependency references instead of versions:

pkjutil traverse-dependencies

Colophon

Developer's Guide

Build reports:

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free