README.md 773 B

sync-package-json-deps

A script to find and fix out-of-sync dependencies in package.json files.

Installation

Install and run from your project folder, globally, or use npm run build to compile a (massive) single executable and stick it in your path.

Usage

script.js [options] [glob patterns]

sync-package-json-deps.js -w --tab-width 4 './packages/*/package.json' 'package.json'

Options:

tabWidth: Tab width in spaces, passed to JSON.stringify for output.

flags: -tw,--tab-width

number of arguments: 1

default: 2

write: Write changes to files.

flags: -w,--write

number of arguments: 0

default: false

help: Prints the help message, options and usage info then exits.

flags: -h,--help

number of arguments: 0

default: false