stringify-json-object
Stringify and format a JSON object.
Last updated 6 years ago by bconnorwhite .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install stringify-json-object 
SYNC missed versions from official npm registry.

stringify-json-object

NPM TypeScript Coverage Status GitHub Stars Twitter Follow

Stringify and format a JSON object.

Installation

yarn add stringify-json-object
npm install stringify-json-object

API

import stringify, { isJSONObject, JSONObject, JSONValue, JSONArray } from "stringify-json-object";

stringify(json?: JSONValue, pretty = true) => string;

isJSONObject(json?: JSONValue) => boolean;

Types

type JSONObject = {
  [key in string]?: JSONValue
};

type JSONValue = string | number | boolean | null | JSONObject | JSONArray;

interface JSONArray extends Array<JSONValue> {};

Dependenciesdependencies


Dev DependenciesDavid


License license

MIT


Related Packages

Current Tags

  • 1.0.7                                ...           latest (5 years ago)

8 Versions

  • 1.0.7                                ...           5 years ago
  • 1.0.6                                ...           6 years ago
  • 1.0.5                                ...           6 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (7)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |