Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
base64-transcoder
Advanced tools
Base64 transcoding in pure JS. Forked from base64-js. Note that for compatibility with node, this module's default alphabet will decode base64 AND base64-url.
Three methods are exposed: encode
, decode
and byteLength
. Each requires a single argument, encode
and decode
also accept an optional alphabet
argument (see alphabets
property below).
encode
Takes a byte array and returns a base64 string.
decode
Takes a base64 string and returns a byte array.
byteLength
Takes a base64 string and returns length of byte array.
alphabets
Use this property to do base64 transcoding with arbitrary alphabets. For example it is possible to implement base64-url using this interface:
b64.alphabets.url = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'
var a = b64.toByteArray('aa+/')
var b = b64.fromByteArray(a, 'url')
console.log(b === 'aa-_') // true
https://github.com/beatgammit/base64-js
MIT
FAQs
Base64 transcoding in pure JS
The npm package base64-transcoder receives a total of 3 weekly downloads. As such, base64-transcoder popularity was classified as not popular.
We found that base64-transcoder 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
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.