csv-to-indexeddb
v0.0.1
Published
Converts CSV strings and files or JSON to IndexedDB
Downloads
20
Readme
csv-to-indexeddb
Simple utility to convert from CSV files, strings, or (tabular) JSON to IndexedDB.
This project is not yet well-tested.
To-dos
- Add tests with full coverage
- Tag/publish
Possible to-dos
- Add Mocha browser test (especially important for confirming IndexedDB)
- For
cfg.alterJSON
ofimportCSVToIndexedDB
(theAlterJSONCallback
jsdoc type), we might benefit from having various pre-built callbacks (indicated by a string name) versions which convert JSON CSV to other JSON CSV formats, e.g., from flat to non-flat or vice-versa or array to object or object to array (latter would lose numeric keys, however); also, allow callbacks like csvtojson'colParser
to manipulate JSON CSV (might accept JSON Schema like{type: 'string'}
to indicate conversions); make sure these proposed callbacks are public exports (possibly in its own library) so one can use before sending toimportJSONToIndexedDB
as well