Ucsv.js: A simple JavaScript CSV library
UCSV is a small library for importing and exporting CSV into and out of ECMAScript programs. CSV text is imported into an array containing a collection of arrays, one for each row. Likewise a collection of arrays can be converted into CSV text with a single function call.
Features
- MIT licenced
- Simple, namespaced API
- Small (less than 1kb when minified and gzipped)
- When exporting appropriate fields are automatically quoted
- Optionally strip leading and trailing whitespace from fields
- Properly support for quotes, commas and line-breaks in quoted fields
- CommonJS support
Current Release
The current version is 1.1.0
- Download zip file containing both commented and minified versions of the library.(20k)
- Changelog
- Documentation
- A simple CSV editor demo
- There is a short UCSV tutorial on the blog