universal-base64
v2.1.0
Published
Small universal base64 functions for node.js and browsers
Downloads
240,827
Maintainers
Readme
Universal Base64
Small universal base64 functions for node.js and browsers.
Why? Universal projects deployed to browsers should not need Buffer for base64 functionality already built into browsers (window.btoa and window.atob).
Installation
npm install universal-base64 --saveUsage
import { decode, encode } from "universal-base64";
encode("test"); //=> "dGVzdA=="
decode("dGVzdA=="); //=> "test"TypeScript
This module uses TypeScript and contains type definitions on NPM.
License
Apache 2.0
