Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abcnews/base-36-props

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abcnews/base-36-props

Tools for encoding / decoding JavaScript objects to / from base36 strings

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by450%
Maintainers
5
Weekly downloads
 
Created
Source

base-36-props

Tools for encoding / decoding JavaScript objects to / from base36 strings.

Usage

As a CLI

Install globally with npm i -g @abcnews/base-36-props to use the b36p executable, or use npx:


npx @abcnews/base-36-props encode '{ x: [true, 1, "1", null] }'
> 3zo7wx3dtlini74hp4rl9mo1n8ns65v1mkcd

npx @abcnews/base-36-props decode 3zo7wx3dtlini74hp4rl9mo1n8ns65v1mkcd
> { x: [true, 1, '1', null] }

As a library (node or browser)

npm i @abcnews/base-36-props
import { encode, decode } from '@abcnews/base-36-props';

encode({ x: [true, 1, '1', null] });
// > 3zo7wx3dtlini74hp4rl9mo1n8ns65v1mkcd

decode('3zo7wx3dtlini74hp4rl9mo1n8ns65v1mkcd');
// > { x: [ true, 1, '1', null ] }

A browser usage example is included with this project. To try it:

git clone https://github.com/abcnews/base-36-props
cd base-36-props
npm run example

...then open the console in the browser window that opens, and try out b36p.encode() and b36p.decode().

Hosted tool

A standalone web-based converter is also available here.

FAQs

Package last updated on 03 Mar 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc