
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
excel-to-clean-json
Advanced tools
Simple script to organize the object you get back from `xlsjs`
Simple script to organize the object you get back from xlsjs
. There are a lot of these, and I make no claim to have the best.
v0.0.3
npm install excel-to-clean-json
var xlsToJSON = require("excel-to-clean-json");
var json = xlsToJSON.json("test/2012pres.xls", "2012 Pres General Results");
var rows = xlsToJSON.rows("test/2012pres.xls", "2012 Pres Primary Party Summary");
xlsToJSON.json(filename, worksheet_name)
converts a specific worksheet to an array of Javascript objects, one for each row. It assumes the first row has head information and uses it as the keys. For example, from npm test
:
[
{
"1": 2,
"FEC ID": "P80003353",
"STATE": "Alabama",
"STATE ABBREVIATION": "AL",
"GENERAL ELECTION DATE": 41219,
"FIRST NAME": "Mitt",
"LAST NAME": "Romney",
"LAST NAME, FIRST": "Romney, Mitt",
"PARTY": "R",
"GENERAL RESULTS": 1255925,
"GENERAL %": 0.6054582232982282,
"WINNER INDICATOR": "W"
},
{
"1": 3,
"FEC ID": "P80003338",
"STATE": "Alabama",
"STATE ABBREVIATION": "AL",
"GENERAL ELECTION DATE": 41219,
"FIRST NAME": "Barack",
"LAST NAME": "Obama",
"LAST NAME, FIRST": "Obama, Barack",
"PARTY": "D",
"GENERAL RESULTS": 795696,
"GENERAL %": 0.3835903309875247
}
xlsToJSON.rows(filename, worksheet_name)
will convert a specific worksheet to an array of arrays. Use this when there is no header info.
[
[
"Summary of 2012 Presidential Primary Vote Totals by Party"
],
[
"Republican Party (R)",
19530335
],
[
"Democratic Party (D)",
8571580
]
xlsToJSON(filename)
will convert every worksheet using .json
.
v0.0.3: Fixed a major bug where wasn't reading columns after 'Z'
FAQs
Simple script to organize the object you get back from `xlsjs`
The npm package excel-to-clean-json receives a total of 22 weekly downloads. As such, excel-to-clean-json popularity was classified as not popular.
We found that excel-to-clean-json 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.