Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 339 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 339 Bytes

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
})