Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
node-xlsx-parser
Advanced tools
Seamless convert xlsx to json with optional option to lowerCase the excel headers (Credits rahil471/node-xlsx-json library)
Weekly downloads
Readme
Converting xlsx file to json or csv files using nodejs. Long story short, our commercial project needed lightweight, pretty simple and up-to-date tool for converting btw XLSX/CSV/JSON. So, came here to share it with you guys.
npm install node-xlsx-parser
yarn add node-xlsx-parser
XLSXParser = require("xlsx-to-json");
const jsonFromXLSX = new XLSXParser()
.xlsx_to_json(
input, // file/blob/base64/string/array/buffer as xlsx to convert to json
options // options from require('xlsx').xlsx_to_json()
);
const csvFromXLSX = new XLSXParser()
.xlsx_to_csv(
input, // file/blob/base64/string/array/buffer as xlsx to convert to json
options // options from require('xlsx').xlsx_to_csv()
);
const jsonFromCSV = new XLSXParser()
.csv_to_json(
input, // file/blob/path as xlsx to convert to json
options // options from require('xlsx').xlsx_to_csv()
);
const CSVFromJSON = new XLSXParser()
.json_to_csv(
input, // JSON/JSONB file with object for translate to CSV
options // options from require('xlsx').json_to_csv()
)
const {
result: string, // csv or json formatted string
error: string, // reason of the failure
} = jsonFromXLSX || csvFromXLSX || jsonFromCSV;
Feel free guys, to share you PRs to develop
branch with some proposals. I will greetely review all of them as soon as I can for sure)
MIT @dkfl1995
FAQs
Seamless convert xlsx to json with optional option to lowerCase the excel headers (Credits rahil471/node-xlsx-json library)
The npm package node-xlsx-parser receives a total of 36 weekly downloads. As such, node-xlsx-parser popularity was classified as not popular.
We found that node-xlsx-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.