
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@frsource/base64
Advanced tools
This javascript code is used to encode / decode data using base64 (this encoding is designed to make binary data survive transport through transport layers that are not 8-bit clean). Script is fully compatible with UTF-8 encoding. You can use base64 encoded data as simple encryption mechanism.
If you plan using UTF-8 encoding in your project don’t forget to set the page encoding to UTF-8 (Content-Type meta tag).
npm i @frsource/base64
// Importing:
// typescript / ES6
import { encode, decode } from '@frsource/base64';
// legacy javscript
const { encode, decode } = require('@frsource/base64');
const encoded = encode('我喜欢解码lubię dekodować');
console.log(encoded); // output: 5oiR5Zac5qyi6Kej56CBbHViacSZIGRla29kb3dhxIc=
const decoded = decode(encoded);
console.log(encoded); // output: 我喜欢解码lubię dekodować
Based on webtoolkit.info implementation. Original source code available at: http://www.webtoolkit.info/javascript_base64.html
Copyright (c) 2022-present, Jakub FRS Freisler, FRSOURCE
FAQs
base64 encoder/decoder with UTF-8 support 📔
The npm package @frsource/base64 receives a total of 21,626 weekly downloads. As such, @frsource/base64 popularity was classified as popular.
We found that @frsource/base64 demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies