Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork12
A webpack module to intelligently load csv files
License
theplatapi/csv-loader
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This CSV loader automatically converts data types, making it easy to import and start using data.
Install with npm:
npm install --save-dev csv-loaderAdd the csv-loader to your webpack configuration:
constconfig={module:{rules:[{test:/\.csv$/,loader:'csv-loader',options:{dynamicTyping:true,header:true,skipEmptyLines:true}}]}};
The loader will translate csv files into JSON, with the following settings:
- automatically convert columns to the proper data type,
- parse the CSV header
- skip any blank lines in the file
Any options supported by Papa Parse can be passed to this loader with the options object. The current Papa Parse API is availablehere.
This module works with any column based file separated by deliminators. Simply set which extension to parse and theloader will automatically figure out which deliminator to use by default. The deliminator can also be manually set.
- Inspired bydsv-loader
- CSV parsing done withPapa Parse
About
A webpack module to intelligently load csv files
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.