
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@waiting/base64
Advanced tools
Base64 encoding/decoding in pure JS on both modern Browsers and Node.js
Base64 encoding/decoding in pure JS on both modern Browsers and Node.js based on base64-js
string
, number
and bigint
ArrayBuffer
or Uint8Array
TextEncoder
/TextDecoder
under browser and Buffer
under Node.jsbigint
base64 encodingutf-8
and utf-16le
npm install @waiting/base64
import { b64encode, b64fromBuffer } from '@waiting/base64'
b64encode('A') === 'QQ=='
b64encode('𠮷') === b64encode('\uD842\uDFB7') === b64encode('\u{20BB7}') // '8KCutw=='
b64encode('schöne') === 'c2Now7ZuZQ=='
// bigint
b64encode(1n) === b64encode(1) // 'MQ=='
const u8arr = Uint8Array.from([0xe4, 0xb8, 0xad, 0xe6, 0x96, 0x87])
b64fromBuffer(u8arr) === b64encode('中文') // '5Lit5paH'
import { b64decode } from '@waiting/base64'
b64decode('MQ==') === '1'
npm run test
# for browsers FireFox and Chrome
npm run test:browser
# for browsers all available on this client
cd .config && npm i
npm run browser:detect
FAQs
Base64 encoding/decoding in pure JS on both modern Browsers and Node.js. Also supports URL-safe base64
The npm package @waiting/base64 receives a total of 220 weekly downloads. As such, @waiting/base64 popularity was classified as not popular.
We found that @waiting/base64 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.