
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Small utils to make developing with d3 easier, inspired by d3-jetpack and d3-starterkit
d3-utils
Small utils to make developing with d3 easier, inspired by d3-jetpack and d3-starterkit
npm install d3-utils
var d3 = require('d3')
var lifecycle = require('d3-utils/lifecycle')
var ƒ = require('d3-utils/get')
var o = require('d3-utils/compose')
var scale = {x: d3.scale.linear().range([0, 1000])}
d3.selectAll('li')
.data(someDataArray) // [{label: 'Hello world', x: 0.5}, ...]
.call(lifecycle(
enter => enter.append('li').text(ƒ('label')),
update => update.style('top', o(ƒ('x'), scale.x)),
exit => exit.remove()
))
utils.lifecycle([enter], [update], [exit])
Makes handeling the lifecycle of a D3 selection a bit easier.
enter
Type: Function
Default noop
Calls this function with selection.enter()
update
Type: Function
Default noop
Calls this function with selection
exit
Type: Function
Default noop
Calls this function with selection.exit()
utils.get(prop, [default])
Returns a function that accesses prop
and returns it, optionally returning
default
if null
prop
Type: String
Retrieve value with key prop
from whatever object is called on the returining
function
default
Type: Any
Default null
Default value to return
utils.compose([fn...])
Takes any number of functions and composes them from left to right, returning the compose function, eg:
f(g(h(x))) === utils.compose(h, g, f)(x)
FAQs
Small utils to make developing with d3 easier, inspired by d3-jetpack and d3-starterkit
The npm package d3-utils receives a total of 4 weekly downloads. As such, d3-utils popularity was classified as not popular.
We found that d3-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.