Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jamiebuilds/json-peek

Stringify JSON *just enough* to see what it is
https://github.com/jamiebuilds/json-peek

json peek pretty preview print stringify

Last synced: 4 months ago
JSON representation

Stringify JSON *just enough* to see what it is

Awesome Lists containing this project

README

        

# json-peek

> Stringify JSON *just enough* to see what it is

## Install

```sh
yarn add json-peek
```

## Usage

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

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

## Example

**Input:**

```json
{
"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 ",
"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", ...}
```