
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
base64-coder-node
Advanced tools
Base64 string encoder/decoder.
npm install base64-coder-node
var base64 = require('base64-coder-node')();
console.log(base64.encode('Base64 string encoder/decoder.'));
console.log(base64.decode('QmFzZTY0IHN0cmluZyBlbmNvZGVyL2RlY29kZXIu'));
console.log(base64.encode('Base64 string encoder/decoder.', 'utf16le'));
console.log(
base64.decode(
'QgBhAHMAZQA2ADQAIABzAHQAcgBpAG4AZwAgAGUAbgBjAG8AZABlAHIALwBkAGUAYwBvAGQAZQByAC4A',
'utf16le'
)
);
QmFzZTY0IHN0cmluZyBlbmNvZGVyL2RlY29kZXIu
Base64 string encoder/decoder.
QgBhAHMAZQA2ADQAIABzAHQAcgBpAG4AZwAgAGUAbgBjAG8AZABlAHIALwBkAGUAYwBvAGQAZQByAC4A
Base64 string encoder/decoder.
ascii
- for 7 bit ASCII data only. This encoding method is very fast, and will strip the high bit if set.utf8
(default) - Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.utf16le
- 2 or 4 bytes, little endian encoded Unicode characters. Surrogate pairs (U+10000 to U+10FFFF) are supported.ucs2
- Alias of utf16le
.base64
- Base64 string encoding.binary
- A way of encoding raw binary data into strings by using only the first 8 bits of each character. This encoding method is deprecated and should be avoided in favor of Buffer objects where possible. This encoding will be removed in future versions of Node.hex
- Encode each byte as two hexadecimal characters.To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
Distributed under the MIT License.
FAQs
Base64 string encoder/decoder.
The npm package base64-coder-node receives a total of 12 weekly downloads. As such, base64-coder-node popularity was classified as not popular.
We found that base64-coder-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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.