Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
excel-to-clean-json
Advanced tools
Readme
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 52 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.