1.0.0 • Published 9 years ago
@develephant/jsonp v1.0.0
jsonp
A promise based JSON wrapper.
Install
npm i @develephant/jsonp --saveUsage
const jsonp = require('@develephant/jsonp')Example
async
async function doJSONStuff() {
let json_str = await jsonp.stringify(js_obj)
}promise
jsonp.parse(json_str)
.then(res => console.log(res))
.catch(err => console.error(err))Methods
stringifypretty(formatted stringify)parse
jsonp ⋆ © 2017 develephant ⋆ MIT license
1.0.0
9 years ago