
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Calculates the projection transform of the given d3 geo path to fit the given geometry features into the given widht/height.
A utility function which calculates the projection transform of the given d3 geo path to fit the given geometry features into the given width/height.
/**
* Calculates the projection transform for the given d3.geo.path
* to fit the given geometry features into the box [0, 0, width, height].
*
* @param geoPath Instance of d3.geo.path
* @param features GeoJSON features
* @param width {Number}
* @param height {Number}
* @param padding {Number} Padding in pixels
* @returns {{scale: number, translate: *[]}}
*/
fitTransform(geoPath, features, width, height, padding)
FAQs
Calculates the projection transform of the given d3 geo path to fit the given geometry features into the given widht/height.
The npm package d3-geo-fit receives a total of 2 weekly downloads. As such, d3-geo-fit popularity was classified as not popular.
We found that d3-geo-fit 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.