JSPM

@putout/formatter-json

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6682
  • Score
    100M100P100Q144094F
  • License MIT

🐊Putout formatter output json on end

Package Exports

  • @putout/formatter-json
  • @putout/formatter-json/lib/json.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/formatter-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@putout/formatter-json NPM version

JSON is a syntax for serializing objects, arrays, numbers, strings, booleans, and null. It is based upon JavaScript syntax but is distinct from it: some JavaScript is not JSON.

(c) MDN

🐊Putout formatter outputs JSON, when done.

Install

npm i putout @putout/formatter-json

Usage

putout --format json lib

Result example:

{
    "errors": [{
        "name": "/home/coderaiser/putout/packages/putout/lib/putout.js",
        "places": [{
            "rule": "remove-debugger",
            "message": "Unexpected \"debugger\" statement",
            "position": {
                "line": 3,
                "column": 0
            }
        }]
    }],
    "filesCount": 1,
    "errorsCount": 1
}

License

MIT