Skip to content

A small library providing utility methods to decode base64 strings using Node Buffer API.

License

Notifications You must be signed in to change notification settings

ceccode/base64-decode-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base64 decode utils

A small library providing utility methods to decode base64 strings using Node Buffer API.

Build Status Known Vulnerabilities https://david-dm.org/ceccode/base64-decode-utils.svg

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

License

MIT license

About

A small library providing utility methods to decode base64 strings using Node Buffer API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published