Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
convert-csv-to-json
Advanced tools
Convert csv file to JSON file with Node.js.
Give an input file like:
first_name | last_name | gender | age | |
---|---|---|---|---|
Constantin | Langsdon | clangsdon0@hc360.com | Male | 96 |
Norah | Raison | nraison1@wired.com | Female | 32 |
will generate:
[
{
"first_name": "Constantin",
"last_name": "Langsdon",
"email": "clangsdon0@hc360.com",
"gender": "Male",
"age": 96
},
{
"first_name": "Norah",
"last_name": "Raison",
"email": "nraison1@wired.com",
"gender": "Female",
"age": 32
}
]
npm. Installing npm.
npm package convert-csv-to-json.
In terminal:
npm i convert-csv-to-json
let csvToJson = require('convert-csv-to-json');
let fileInputName = './input.csv';
let fileOutputName = './output.json';
csvToJson.jsonToCsv(fileInputName,fileOutputName);
CSVtoJSON is licensed under the GNU General Public License v3.0 License.
FAQs
Convert CSV to JSON
The npm package convert-csv-to-json receives a total of 46,757 weekly downloads. As such, convert-csv-to-json popularity was classified as popular.
We found that convert-csv-to-json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.