valid-json

1.0.3 • Public • Published

node-valid-json

Recursively validate format of all JSON files in a directory.

Acquire a list of all JSON files which are not formatted correctly

dir = 'json/schemas'
validator = require 'valid-json' 
validator.validate dir
  .then (invalids) -> console.log(invalids.length"invalid json files")
  .catch (error) -> "error traversing schemas directory:"error"\nstack:\n"error.stack

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    2
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i valid-json

Weekly Downloads

2

Version

1.0.3

License

none

Last publish

Collaborators

  • buzuli