Fetz/json-analyzer

Interface improvements

Opened this issue · 1 comments

Fetz commented
  1. CLI and Node/Browser options should match
CLI Node/Browser
--depth maxDepth
  1. Node/Browser JSON option, since is mandatory and the other aren't we should make it the first argument and the second should be all the non mandatory, it will make more closer to the behaviour of the CLI
  2. Node/Browser JSON option shouldn't be called JSON or we should convert it not in the cli but in the Node/Browser library code and add there the validation
  3. We should rename the cli (in the package) from json-analyzer.js to json-analyzer

Would be useful to do this before doing the asciicinema/svg-term-cli animations in the README and gh-page