Socket
Socket
Sign inDemoInstall

base65536-helper

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    base65536-helper


Version published
Maintainers
1
Install size
49.7 kB
Created

Readme

Source

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

FAQs

Last updated on 05 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc