
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
mixed-radix
Advanced tools
A small library that encode and decode using mixed radix.
npm install --save mixed-radix
mrDecode([2, 3], 5); // [1, 2]
mrEncode([2, 3], [1, 2]); // 5
mrDecode([3, 3, 2], 7); // [1, 0, 1]
mrEncode([3, 3, 2], [1, 0, 1]); // 7
mrDecode([24, 24, 60], 3661); // [1, 1, 1]
mrEncode([24, 60, 60], [1, 1, 1])); // 3661
Encodes using mixed radix.
number[] Mixed bases, must be integers.number[] Values to encode, must be an array of integer with the same length as bases.return: number Encoded values.
Decodes mixed radix.
number[] Mixed bases, must be an array integers.number[] Values to decode, must be an integer.return: number[] Decoded values.
MIT
FAQs
Mixed Radix
The npm package mixed-radix receives a total of 387 weekly downloads. As such, mixed-radix popularity was classified as not popular.
We found that mixed-radix 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.