iojson

1.0.4 • Public • Published

iojson

Import and export json file with pure javascript in browser.

Install

npm install iojson

Demo

import iojson from 'iojson'
 
const data = {
  // your json data
}
 
// export a .json file
iojson.exportJSON(data, 'filename')
 
// import json from file
iojson.importJSON().then(data => {
  // some code
})

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i iojson

      Weekly Downloads

      13

      Version

      1.0.4

      License

      MIT

      Unpacked Size

      4.05 kB

      Total Files

      6

      Last publish

      Collaborators

      • ryanji