1.0.3 • Published 4 years ago
base65536-helper v1.0.3
Welcome to base65536-helper 👋
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
- Website: https://github.com/GypsyDangerous
- Github: @gypsydangerous
🤝 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