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

@abcnews/base-36-text

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abcnews/base-36-text

Tools for encoding / decoding text to / from base36 strings

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by80%
Maintainers
4
Weekly downloads
 
Created
Source

base-36-text

Tools for encoding / decoding text to / from base36 strings.

Usage

As a CLI

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


npx @abcnews/base-36-text encode 'example text'
> 31ltulurfcfzwo4gm7o

npx @abcnews/base-36-text decode 31ltulurfcfzwo4gm7o
> example text

As a library (node or browser)

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

encode('example text');
// > 31ltulurfcfzwo4gm7o

decode('31ltulurfcfzwo4gm7o');
// > 'example text'

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

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

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

FAQs

Package last updated on 09 Dec 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