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-format
Advanced tools
Re-format base64 data from one implementation to another.
For the latest list, please refer to base64-variants.
base64
: Vanilla base64 - defaultbase64_64
/: Vanilla base64, with 64-char linesbase64_76
: Vanilla base64, with 76-char linesrfc4648
: RFC 4648 (base64url)rfc4648_alt
: RFC 4648 with "="rfc4648_ni
: RFC 6920 (unpadded RFC 4648)y64
: YUI "Y64"xml
: XML-compatiblenpm install base64-format
var base64Format = require("base64-format");
var options = {
from: "base64",
to: "rfc4648"
}
base64Format(options, "heLLO+/="); //=> "heLLO-_.""
Note: this module supports currying.
var rfc4648 = base64Format({ from: "base64", to: "RFC 4648" });
rfc4648("heLLO+/="); //=> "heLLO-_."
Key: type name = default
string from = "base64"
Desired "from" base64 variant (see "Variants").
string to = "base64"
Desired "to" base64 variant (see "Variants").
boolean clean = true
Remove non-encoding characters (courtesy of base64-clean)?
FAQs
Re-format base64 data
We found that base64-format 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.