jsoncalc
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

Lines

jsoncalc

A utility to watch a json file and run calculations recursively.

Installation

npm install --global jsoncalc

Usage

jsoncalc budget.json

jsoncalc -h

Usage: jsoncalc [options] <pathToJson>

Watches for changes and adds calculated elements to each hashmap in the json file at <pathToJson>

Options:
  -V, --version            output the version number
  -r, --reducer <reducer>  One or more (comma seperated) of the available reducer computations: [sum, count, avg, yep, nope]. (default: sum)
  -h, --help               display help for command

Package Sidebar

Install

npm i jsoncalc

Weekly Downloads

2

Version

1.1.8

License

MIT

Unpacked Size

28.9 kB

Total Files

22

Last publish

Collaborators

  • productiveme