basic-64

0.0.7 • Public • Published

How it works?

This library uses buffers to operate. This means that there are no other dependencies than itself.

How to use ?


Encoding :
const basic64 = require('basic-64'),
    string = 'keyboard cat',
    encodedString = base64.encode(string)
 
console.log(encodedString) // 'a2V5Ym9hcmQgY2F0'

Decoding :
const basic64 = require('basic-64'),
    string = 'a2V5Ym9hcmQgY2F0',
    decodedString = base64.encode(string)
 
console.log(decodedString) // 'keyboard cat'

Package Sidebar

Install

npm i basic-64

Weekly Downloads

1

Version

0.0.7

License

ISC

Unpacked Size

3.45 kB

Total Files

7

Last publish

Collaborators

  • obvious-ly-sh