Json Peek Save

Stringify JSON *just enough* to see what it is

Project README

json-peek

Stringify JSON just enough to see what it is

Install

yarn add json-peek

Usage

const jsonPeek = require('json-peek');

jsonPeek({ prop: 'value' }); // {"prop": "value"}

Example

Input:

{
  "name": "json-peek",
  "version": "0.0.0",
  "description": "Stringify JSON *just enough* to see what it is",
  "main": "index.js",
  "repository": "https://github.com/jamiebuilds/json-peek",
  "author": "Jamie Kyle <[email protected]>",
  "license": "MIT",
  "keywords": [
    "json",
    "stringify",
    "peek",
    "preview",
    "pretty",
    "print"
  ],
  "files": [
    "index.js"
  ],
  "scripts": {
    "test": "ava"
  },
  "devDependencies": {
    "ava": "^0.25.0",
    "flow-bin": "^0.74.0"
  }
}

Output:

{"name": "json-peek", ...}
Open Source Agenda is not affiliated with "Json Peek" Project. README Source: jamiebuilds/json-peek
Stars
33
Open Issues
0
Last Commit
5 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating