Skip to content

Latest commit

 

History

6 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

csvinarray

An NPM package which can be used to read and convert CSV files to JSON in javaScript.

Installation

Install csvinarray with npm

 $ npm install csvinarray

Usage/Examples

const convert = require('csvinarray');
let jsonData = csvinarray(__dirname + "/sample/example-csv.csv");
// Data in json from the csv file.

Simple syntax for converting your file

It is just one line in order to convert your CSV file to JSON.

The Basic Function

There is just one function, Which can be used as this.

let jsonData = csvinarray(__dirname + "/sample/example-csv.csv");
//                            ^ very important | pwd + Path
// *pwd = present working directory

Running Tests

To run tests, run the following command

$  npm run test

License

MIT

Authors

  • Waiting for other authors.

Feedback

If you have any feedback, please reach out to us in the issues sections.

Enjoy your powerfull NPM package

关于

NPM package which can be used to read and convert CSV files to JSON in JavaScript.

Topics

Resources

Stars

2 stars

关注者

1 watching

复刻s

发布

贡献者

Languages