https://github.com/itibbers/iojson
Import and export json file with pure javascript in browser.
https://github.com/itibbers/iojson
browser configuration-files export import json pure-javascript
Last synced: 9 months ago
JSON representation
Import and export json file with pure javascript in browser.
- Host: GitHub
- URL: https://github.com/itibbers/iojson
- Owner: itibbers
- License: mit
- Created: 2019-09-18T07:07:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T04:57:03.000Z (about 5 years ago)
- Last Synced: 2025-04-23T21:44:45.154Z (9 months ago)
- Topics: browser, configuration-files, export, import, json, pure-javascript
- Language: JavaScript
- Homepage: https://itibbers.github.io/iojson
- Size: 6.84 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iojson
Import and export json file with pure javascript in browser.
## Install
```bash
npm install iojson
```
## Demo
```js
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
})
```