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-counties
Advanced tools
D3-Node Choropleth of US counties (with state boundaries)
Choropleth of US counties via CSV data and custom color scale
$ npm install @d3-node/choropleth-us-counties --save
const d3nMap = require('@d3-node/choropleth-us-counties')
// read CSV -> parse to json
const csv = fs.readFileSync('./unemployment.csv').toString()
const data = d3nMap.csvParse(csv)
const colors = [ // 9-color scheme (blue)
'#f7fbff', '#deebf7', '#c6dbef',
'#9ecae1', '#6baed6', '#4292c6',
'#2171b5', '#08519c', '#08306b'
]
const scale = [ 2, 3, 4, 5, 6, 7, 8, 9 ] // buckets for unemployment rate
const map = d3nMap({ data, colors, scale })
map.svgString() // returns <svg>
See test for actual usage.
npm test
{ data, colors, scale, [ idField = 0, metricField = 1 ] }
FAQs
D3-Node Choropleth of US counties (with state boundaries)
The npm package @d3-node/choropleth-us-counties receives a total of 0 weekly downloads. As such, @d3-node/choropleth-us-counties popularity was classified as not popular.
We found that @d3-node/choropleth-us-counties 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.