0.0.1 • Published 6 years ago

csv-to-indexeddb v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

  1. Add tests with full coverage
  2. Tag/publish

Possible to-dos

  1. Add Mocha browser test (especially important for confirming IndexedDB)
  2. For cfg.alterJSON of importCSVToIndexedDB (the AlterJSONCallback 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 to importJSONToIndexedDB as well