
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
snowflake-codon
Advanced tools
Generate IDs with strategy like Twitter Snowflake and encode it in short string
Generate IDs with strategy like Twitter Snowflake and encode it in short string.
Install it via npm:
npm install snowflake-codon
Include in your project:
var SnowflakeCodon = require("snowflake-codon");
Generate IDs with application ID and machine ID
var appId = 1; // optional, default value 0
var machineId = 99; // optional, default value 0
var firstYear = 2015; // optional, default value 1970
var timestampPrecision = 200; // optional, default value 1000 (ms)
var generator = new SnowflakeCodon(appId, machineId, firstYear, timestampPrecision);
var id = generator.nextId();
// id will be something like '0fw2tte10003300'
MIT
FAQs
Generate IDs with strategy like Twitter Snowflake and encode it in short string
We found that snowflake-codon 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.