UNPKG

chin-plugin-json

Version:
30 lines (22 loc) 1.09 kB
# chin-plugin-json [![npm](https://img.shields.io/npm/v/chin-plugin-json.svg?longCache=true&style=flat-square)](https://www.npmjs.com/package/chin-plugin-json) [![npm](https://img.shields.io/npm/dm/chin-plugin-json.svg?longCache=true&style=flat-square)](https://www.npmjs.com/package/chin-plugin-json) [![Build Status](https://img.shields.io/travis/chinjs/chin-plugin-json.svg?longCache=true&style=flat-square)](https://travis-ci.org/chinjs/chin-plugin-json) [![Coverage Status](https://img.shields.io/codecov/c/github/chinjs/chin-plugin-json.svg?longCache=true&style=flat-square)](https://codecov.io/github/chinjs/chin-plugin-json) [chin](https://github.com/chinjs/chin) plugin using JSON.stringify. ## Installation ```shell yarn add -D chin chin-plugin-json ``` ## Usage ### json(options) ```js import json from 'chin-plugin-json' const ext = json() ``` #### [options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) - `replacer` - `space` - `parse` ## License MIT (http://opensource.org/licenses/MIT)