
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
deserialize-uuid
Advanced tools
extracts the timestamp from a version 1 UUID
npm install deserialize-uuid
pass it a uuid-compatible uuid string
require('deserialize-uuid')('0c1d16c8-5c6a-11e4-90cf-12313b0e448d')
returns
{
timestamp: <BigNum 136335499267479240>,
timestampUtc: 1414275126747
}
timestamp
is a BigNum for the integral value of the uuid's timestamp field (see RFC4122). timestampUtc is the difference in whole milliseconds between the moment that the timestamp field represents and the UNIX epoch. That means you can do new Date(timestampUtc)
.
Ideally it would also return the RFC4122 "node" and "clock sequence" fields, but I haven't implemented this yet.
FAQs
extracts the timestamp from a version 1 UUID
We found that deserialize-uuid 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.