integreat-adapter-csv
v0.1.4
Published
CSV adapter for Integreat
Downloads
24
Readme
CSV adapter for Integreat
Adapter that lets Integreat read and save CSV files.
Getting started
Prerequisits
Requires node v8.6 and Integreat v0.7.
Installing and using
Install from npm:
npm install integreat-adapter-csv
Example of use:
const integreat = require('integreat')
const cvsAdapter = require('integreat-adapter-csv')
const defs = require('./config')
const resources = integreat.resources(csvAdapter)
const great = integreat(defs, resources)
// ... and then dispatch actions as usual
Example source configuration:
{
id: 'csvfile',
adapter: 'csv',
endpoints: [
{ options: { delimiter: ';' } }
]
}
Running the tests
The tests can be run with npm test
.
Contributing
Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests.
License
This project is licensed under the ISC License - see the LICENSE file for details.