base64-decode-utils
A (very) small library providing utility methods to decode base64 strings using Node Buffer API
Last updated 4 years ago by francesco .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install base64-decode-utils 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (4 years ago)

2 Versions

  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |