Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@d3-node/choropleth-us-states
Advanced tools
geocoded markers (via CSV) with radius representing a datapoint
$ npm install @d3-node/choropleth-us-states --save
const d3nMap = require('@d3-node/choropleth-us-states')
// read CSV -> parse to json
const csv = fs.readFileSync('./StatePopulations.csv').toString()
const data = d3nMap.csvParse(csv)
const stateNameField = 'State'
const valueField = 'Population'
const colors = [
'rgb(255,245,240)', 'rgb(254,224,210)', 'rgb(252,187,161)',
'rgb(252,146,114)', 'rgb(251,106,74)', 'rgb(239,59,44)',
'rgb(203,24,29)', 'rgb(165,15,21)', 'rgb(103,0,13)'
]
const scale = [1, 4, 8, 15, 20, 30, 40, 50, 60]
const map = d3nMap({ data, colors, scale, stateNameField, valueField })
map.svgString() // returns <svg>
See test for actual usage.
npm test
{ data, colors, scale, [ stateNameField, valueField ] }
FAQs
D3-Node US States choropleth
The npm package @d3-node/choropleth-us-states receives a total of 0 weekly downloads. As such, @d3-node/choropleth-us-states popularity was classified as not popular.
We found that @d3-node/choropleth-us-states 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.