npx twinkle-parser data_from_kdb.csv
# Install with NPM
npm install -g twinkle-parser
# Install with yarn
yarn add --global twinkle-parser
# Then
twinkle-parser data_from_kdb.csv
# * Inside repo directory
# Install dependencies
yarn
# Parse
yarn run parse data_from_kdb.csv
# Install with NPM
npm install twinkle-parser
# Install with yarn
yarn add twinkle-parser
const parse = require('twinkle-parser')
const data = parse('CSV string here') // -> KDBData
Option | |
---|---|
-o PATH / --output PATH |
Export result to a file at the PATH instead of to stdout. |
-p / --pretty |
Prettify json output. |
--fields |
Fields to be included (comma-separated, specifing all if not set) |
-h / --help |
Print help & usage. |
-v / --version |
Print version info |
TypeScript supported! 🎉
// This will be imported with types
import parse from 'twinkle-parser'
// And types for output data are also available
import { KDBData, KDBCourse } from 'twinkle-parser'
Issue or PR submissions are welcome.