Added micro parser

This commit is contained in:
2020-12-23 22:43:44 +11:00
commit 0a007862e7
3 changed files with 77 additions and 0 deletions

13
README.md Normal file
View File

@@ -0,0 +1,13 @@
# Micro CSV
Micro CSV Parser for JavaScript and Google Script. Designed to be small,
efficient and no dependencies.
## Usage
Only one method is provided;
```js
const csv = 'Name,Age,Location\nDom,26,Sydney\nSteve,30,New York';
parseCSV(csv, function(line) {
console.log(line.name);//Dom then Steve
})
```
To stay efficient we ask for a callback that is fired for every line parsed.