![]() ![]() The "samples" folder and the "test" folder. require("csv-parse") will become require("csv-parse/lib/es5"). The source code uses modern JavaScript features and run natively in Node 7.6+.įor older browsers or older versions of Node, use the modules inside "./lib/es5", i.e. Use the stream based API for scalability and the sync or mixed APIs for simplicity. Npm install csv-parse if you are only interested by the CSV parser. Run npm install csv to install the full CSV package or run Work nicely with the csv-generate, stream-transform and csv-stringify packages.Complete test coverage and samples for inspiration.Use () to remove the first row (title row) if omitFirstRow is true. Use () to find the first newline character ( n ). Support delimiters, quotes, escape characters and comments.Converts a comma-separated values (CSV) string to a 2D array.Simplicity with the optional callback and sync API. ![]() Source code for this project is available on GitHub. It was first released in 2010 and is used against big data sets by a large community. It is both extremely easy to use and powerful. It also provides alternative APIs for convenience such as the callback API and sync API. This package is a parser converting CSV text input into arrays or objects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |