@abecodes/hasher64

1.0.0 • Public • Published

hasher64

hasher64 is a simple base64 encoder and decoder for node. It works with strings as well as with files. It has no dependencies and works with nodes native APIs.

It is released under the UNLICENSE & supports modern environments.

Installation

Using npm:

$ npm i -g @abecodes/hasher64
$ npm i --save @abecodes/hasher64

In Node.js:

// Load the package.
const hasher = require("@abecodes/hasher64");

API

encode

hasher.encode(value: string) => base64 string

The encode method takes a string as paramter and returns it as base64 encoded string.

decode

hasher.decode(base64 string) => string

The decode method takes a base64 encoded string and returns it string value

atob

hasher.atob(data Buffer) => base64 string

The atob method takes a Buffer and returns it as base64 encoded string

btoa

hasher.btoa(base64 string) => Buffer

The btoa method takes a base64 encoded Buffer and returns the Buffer

Greetings

May you enjoy using this piece of software as much as I enjoyed writing it. Stay bug free and have an awesome day <3

Package Sidebar

Install

npm i @abecodes/hasher64

Weekly Downloads

1

Version

1.0.0

License

UNLICENSED

Unpacked Size

8.31 kB

Total Files

14

Last publish

Collaborators

  • abecodes