Skip to content

develephant/jsonp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

jsonp

A promise based JSON wrapper.

Install

npm i @develephant/jsonp --save

Usage

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

  • stringify

  • pretty (formatted stringify)

  • parse


jsonp ⋆ © 2017 develephant ⋆ MIT license

Releases

No releases published

Packages

No packages published