base64-decode-utils
v0.0.2
Published
A (very) small library providing utility methods to decode base64 strings using Node Buffer API
Downloads
5
Readme
Base64 decode utils
A small library providing utility methods to decode base64 strings using Node Buffer API.
Installation
npm install base64-decode-utils
## Usage
const base64DecodeUtils = require('base64-decode-utils');
const encoded = "SGVsbG8gV29ybGQh";
base64DecodeUtils.decodeToString(encoded); //Hello World!
API
decodeToString(stream)
decodeToHex(stream)
decodeToUtf8FromHex(stream)
decodeToIntFromByte(stream)
decode(stream, 'string') //default decode byte stream to int
Test
npm test
Coverage
npm run-script test-travis