Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-node-base64
Base64 for nodejs.
https://github.com/afeiship/next-node-base64
b64 base64 decode encode next node
Last synced: 24 days ago
JSON representation
Base64 for nodejs.
- Host: GitHub
- URL: https://github.com/afeiship/next-node-base64
- Owner: afeiship
- License: mit
- Created: 2018-09-01T03:43:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T12:13:15.000Z (almost 4 years ago)
- Last Synced: 2024-10-06T22:24:53.988Z (about 1 month ago)
- Topics: b64, base64, decode, encode, next, node
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-node-base64
> Base64 for nodejs.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-node-base64
```## apis
| api | params | description |
| ------ | ------ | ------------- |
| encode | - | Encode string |
| decode | - | Decode string |## usage
```js
import NxNodeBase64 from '@jswork/next-node-base64';
const encoded = NxNodeBase64.encode('afei');
const decoded = NxNodeBase64.decode(encoded);console.log(encoded, decoded);
// YWZlaQ==
// afei
```## resources
- https://gist.github.com/inadarei/4465153## license
Code released under [the MIT license](https://github.com/afeiship/next-node-base64/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-node-base64
[version-url]: https://npmjs.org/package/@jswork/next-node-base64[license-image]: https://img.shields.io/npm/l/@jswork/next-node-base64
[license-url]: https://github.com/afeiship/next-node-base64/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-node-base64
[size-url]: https://github.com/afeiship/next-node-base64/blob/master/dist/next-node-base64.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-node-base64
[download-url]: https://www.npmjs.com/package/@jswork/next-node-base64