universal-base64
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Universal Base64

NPM version NPM downloads Build status Test coverage Bundle size

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 --save

Usage

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

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i universal-base64

    Weekly Downloads

    43,668

    Version

    2.1.0

    License

    Apache-2.0

    Unpacked Size

    10.7 kB

    Total Files

    15

    Last publish

    Collaborators

    • blakeembrey