Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
earthquake-emitter
Advanced tools
I emit `earthquake` events with data about the location and magnitude.
I emit earthquake
events with data about the location and magnitude.
Usage:
var quakes = new EarthquakeEmitter()
quakes.on('earthquake', (q) => console.log(q.properties.title))
// M 2.6 - 8km NW of Gerlach-Empire, Nevada
Internally, I poll http://earthquake.usgs.gov for geojson data of quakes in the last 2.5 days. I store the quake ids from the last response, and compare it with the new response to figure out which quakes are new, and emit those ones.
An average earthquake
payload looks a bit like this: (there are many other properties)
{
type: 'Feature',
properties: {
mag: 4.7,
place: '13km NNW of Kandrian, Papua New Guinea',
time: 1461410344330,
},
geometry: {
type: 'Point',
coordinates: [ 149.5163, -6.101, 61.89 ]
},
id: 'us20005l6g'
}
A (╯°□°)╯︵TABLEFLIP side project.
FAQs
I emit `earthquake` events with data about the location and magnitude.
We found that earthquake-emitter 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.