https://github.com/ceccode/base64-decode-utils
A small library providing utility methods to decode base64 strings using Node Buffer API.
https://github.com/ceccode/base64-decode-utils
Last synced: 12 months ago
JSON representation
A small library providing utility methods to decode base64 strings using Node Buffer API.
- Host: GitHub
- URL: https://github.com/ceccode/base64-decode-utils
- Owner: ceccode
- License: mit
- Created: 2016-07-08T10:30:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-07T15:55:39.000Z (over 7 years ago)
- Last Synced: 2025-05-30T10:13:55.628Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Base64 decode utils
A small library providing utility methods to decode base64 strings using Node Buffer API.
[](https://travis-ci.org/ceccode/base64-decode-utils)
[](https://snyk.io/test/github/ceccode/base64-decode-utils)
[](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](LICENSE)