Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jamiebuilds/json-peek
- Owner: jamiebuilds
- License: mit
- Created: 2018-06-10T01:50:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-10T06:22:03.000Z (over 6 years ago)
- Last Synced: 2024-09-18T07:35:30.809Z (5 months ago)
- Topics: json, peek, pretty, preview, print, stringify
- Language: JavaScript
- Size: 26.4 KB
- Stars: 33
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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", ...}
```