
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
base62-node
Advanced tools
base62 encode/decode library
$ npm install base62-node
$ bower install base62
var Base62 = require('base62-node');
<script src="base62.min.js"></script>
var base62 = new Base62;
base62.encode(39134); // "abc"
base62.decode('abc'); // 39134
var base62 = new Base62('09AZaz');
base62.encode(39134); // "ABC"
base62.decode('ABC'); // 39134
tableKeyStr
string - base62 convert table keytableKeyStr
can set values below.
if not parameter, value is "09azAZ".
if parameter is not string types, throws TypeError.
if unknown tableKey, throws Error.
new Base62; // use "09azAZ" table
new Base62('09azAZ'); // use "09azAZ" table
new Base62('09AZaz'); // use "09AZaz" table
new Base62(12345678); // throws TypeError
new Base62('AZaz09'); // throws Error
str
string - base62 stringconvert to decimal number from base62 string.
if parameter is not string types, throws TypeError.
if unsupported string format, throws Error.
string format should be match for regexp of ^-?[\da-zA-Z]+$
.
// "09azAZ" table
base62.decode('Z'); // 61
base62.decode('10'); // 62
base62.decode('-10'); // -62
base62.decode(12345); // throws TypeError
base62.decode('!@='); // throws Error
num
number - number valueconvert to base62 string from decimal number.
if parameter is not number types, throws TypeError.
if not a finite number(NaN, Infinity, -Infinity), throws Error.
// "09azAZ" table
base62.encode(61); // "Z"
base62.encode(62); // "10"
base62.encode(-62); // "-10"
base62.encode('1'); // throws TypeError
base62.encode(NaN); // throws Error
$ npm install
$ npm test
The MIT License. Please see LICENSE file.
0.3.1 / 2013-03-29
FAQs
base62 encode/decode library
The npm package base62-node receives a total of 4 weekly downloads. As such, base62-node popularity was classified as not popular.
We found that base62-node 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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.