<commit_before># then-stringify-json [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] 

> Gracefully stringify JSON using promises - promisified JSON.stringify

[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]


## Install
```
npm i then-stringify-json --save
npm test
```


## Usage
> For more use-cases see the [tests](./test.js)

```js
var JSONStringify = require('then-stringify-json')

JSONStringify({foo: 'bar'})
.then(function (res) {
  console.log(res)
  //=> '{"foo":"bar"}'
})
.catch(console.error)
```


## Related
- [bluebird](https://github.com/petkaantonov/bluebird): Full featured Promises/A+ implementation with exceptionally good performance
- [make-callback](https://github.com/tunnckocore/make-callback): Make synchronous function to support callback api
- [promise](https://github.com/then/promise): Bare bones Promises/A+ implementation
- [try-read-json](https://github.com/tunnckocore/try-read-json): Fast, meaningful and correct try/catch flow for reading JSON with JSON.parse - support optional callback
- [then-parse-json](https://github.com/tunnckocore/then-parse-json): Gracefully parse JSON using promises - promisified JSON.parse



## Contributing<commit_msg>fix links<commit_after># then-stringify-json [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] 

> Gracefully stringify JSON using promises - promisified JSON.stringify

[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]


## Install
```
npm i then-stringify-json --save
npm test
```


## Usage
> For more use-cases see the [tests](./test.js)

```js
var JSONStringify = require('then-stringify-json')

JSONStringify({foo: 'bar'})
.then(function (res) {
  console.log(res)
  //=> '{"foo":"bar"}'
})
.catch(console.error)
```


## Related
- [bluebird](https://github.com/petkaantonov/bluebird): Full featured Promises/A+ implementation with exceptionally good performance
- [make-callback](https://github.com/tunnckoCore/make-callback): Make synchronous function to support callback api
- [promise](https://github.com/then/promise): Bare bones Promises/A+ implementation
- [try-read-json](https://github.com/tunnckoCore/try-read-json): Fast, meaningful and correct try/catch flow for reading JSON with JSON.parse - support optional callback
- [then-parse-json](https://github.com/tunnckoCore/then-parse-json): Gracefully parse JSON using promises - promisified JSON.parse



## Contributing
{'fraction_non_alphanumeric': 0.16936050597329586, 'fraction_numerical': 0.0, 'mean_word_length': 5.529816513761468, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3239829', 'n_tokens_mistral': 932, 'n_tokens_neox': 892, 'n_words': 194}