Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guicaulada/csvify
A simple JSON Object to CSV converter
https://github.com/guicaulada/csvify
Last synced: about 1 month ago
JSON representation
A simple JSON Object to CSV converter
- Host: GitHub
- URL: https://github.com/guicaulada/csvify
- Owner: guicaulada
- License: gpl-3.0
- Created: 2019-08-01T15:09:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-01T17:50:49.000Z (over 5 years ago)
- Last Synced: 2024-10-15T09:01:25.263Z (3 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csvify #
**csvify** is a simple Javascript module to convert JSON Objects to CSV.
## Documentation ##
### Getting StartedIf you are using Node.js, install csvify using npm:
```bash
$ npm install @sighmir/csvify
```You can now require and use csvify like so:
```js
let csvify = require('@sighmir/csvify')
let request = require('request')request.get('https://jsonplaceholder.typicode.com/users', (error, response, body) => {
let csv = csvify(body)
console.log(body)
console.log('===========================================')
console.log(JSON.stringify(csv, null, 2))
console.log('===========================================')
console.log(csv.text())
csv.save('output.csv')
})
```### Browser
You can also load this script on your browser like so:
```html
```
You can now use the function csvify normally on the page, like you would on Node.js.
## License ##
```
csvify - A simple JSON Object to CSV converter.
Copyright (C) 2019 Guilherme Caulada (Sighmir)This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .
```