New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bs62

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs62

[![NPM Package](https://img.shields.io/npm/v/bs62.svg?style=flat-square)](https://www.npmjs.org/package/bs62) [![Build Status](https://gitlab.com/redpelicans/bs62/badges/master/pipeline.svg)](https://gitlab.com/redpelicans/bs62/pipelines)

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
49
58.06%
Maintainers
1
Weekly downloads
 
Created
Source

bs62

NPM Package Build Status

Fast base62 strings encoding / decoding using bitcoin style leading zero compression.

bs62 is a rewrite of cryptocoinjs/base-x without Buffer and limited to base62 and strings as input.

Target was to use the library in browsers.

@redpelicans we are using this lib to encode/decode keys using extended chars.

It's limited to below alphabet:

  const ALPHABET = `0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;

Example

var bs62 = require('bs62');

var decoded = bs62.encode('Bonjour ici les bidibules')
// 2XuGb0zE9QdU3OVBUGW1EAUlh2m8TJUioH

console.log(bs72.decode('2XuGb0zE9QdU3OVBUGW1EAUlh2m8TJUioH'))
// Bonjour ici ...

Keywords

base62

FAQs

Package last updated on 15 Apr 2020

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