base65536-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Welcome to base65536-helper 👋

Version License: MIT

Helper functions for the base65536 library to make it easier to encode and decode common data types. Check out base65536 at https://github.com/qntm/base65536

Install

npm i base65636-helper

Usage

const {encode, decode} = require("base65536-helper")

const data = {name: "david", username: "gypsydangerous"}
const encodedData = encode(data)
const decodedData = JSON.parse(decode(encodedData)) // => {name: "david", username: "gypsydangerous"}

Run tests

npm test

Author

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Documentation

encode

accepts "string", "number", "object", and "boolean"
returns "base65536 string"

decode

accepts "base65536 string"
returns "string"

rawDecode

raw base65536 decode function

accepts "base65536 string"
returns Uint8Array

rawEncode

raw base65536 encode function

accepts Uint8Array
returns "base65536 string"

This README was generated with ❤️ by readme-md-generator

Readme

Keywords

none

Package Sidebar

Install

npm i base65536-helper

Weekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

10.7 kB

Total Files

8

Last publish

Collaborators

  • dav1ds