# @ams-team/json-stringify

> JSON.stringify with function

Latest version **0.9.0** (published 2019-08-16) · 0 weekly downloads

## Install

```sh
npm install @ams-team/json-stringify
pnpm add @ams-team/json-stringify
yarn add @ams-team/json-stringify
bun add @ams-team/json-stringify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2019-08-16 |
| First published | 2019-08-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | w3cmark, eshaooo, bfkkkd, wzbwzb, hodor-cn |

## Links

- npm: https://www.npmjs.com/package/@ams-team/json-stringify
- npm.io page: https://npm.io/package/@ams-team/json-stringify

## Recent versions

- 0.9.0 (latest) — 2019-08-16

## README

# @ams-team/json-stringify

# example

``` js
var stringify = require('@ams-team/json-stringify');
var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
console.log(stringify(obj));
```

output:

```
{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}
```


# methods

``` js
var stringify = require('@ams/json-stringify')
```

## var str = stringify(obj, opts)

Return a deterministic stringified string `str` from the object `obj`.


## options

### cycles

Pass `true` in `opts.cycles` to stringify circular property as `__cycle__` - the result will not be a valid JSON string in this case.

TypeError will be thrown in case of circular object without this option.

---
_Source: https://npm.io/package/@ams-team/json-stringify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
