Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Node.js package for parsing excel workbooks into an Javascript array of rows. Excel workbooks based on the node.js package xlsx.
$ npm install xlso --save
Let suppose the following table is saved as testdata.xlsx
.
Id | Name | City |
---|---|---|
1 | Micky | Loum |
2 | Lapiro | Mbanga |
The following snippet show how to parse testdata.xlsx
in order to get all data.
var xlso = require('xlso');
var xlsx = require('xlsx');
// the xlsx's workbook to parse by the xlso package.
var workbook = xlsx.readFile("testdata.xlsx");
// parse the workbook to a js array
var rows = xlso.parseWorkbook(workbook, 0, 0);
// display your js array
rows.forEach(function(item, index){
console.log("Id: " + item.Id + ", Name: " + item.Name + ", City: " + item.City);
});
xlso
expose one API that expect three parameters:
first parameter
is the workbook that was generated by the package xlsx (see section below).second parameter
is the position of the sheet in the given workbook (the index 0 is the first sheet).last parameter
is the position of the header row (position 0 means also first row).PS: the header row must be the first row.
$ npm test
FAQs
Node.js package for parsing an excel workbook to an javascript object
The npm package xlso receives a total of 17 weekly downloads. As such, xlso popularity was classified as not popular.
We found that xlso 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.