Socket
Socket
Sign inDemoInstall

base32-codecs

Package Overview
Dependencies
6
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    base32-codecs

'codecs' compatible base32-encode and base32-decode adapter.


Version published
Weekly downloads
122
increased by154.17%
Maintainers
3
Install size
1.58 MB
Created
Weekly downloads
 

Readme

Source

base32-codecs

base32-codecs is a codecs compatible adapter to base32-encode and base32-decode.

Usage

const {
  base32, // RFC4648, unpadded
  base32c, // Crockford
  base32h, // RFC4648-HEX, unpadded
  base32hp, // RFC4648-HEX, padded
  base32p // RFC4648, Padded 
} = require('base32-codecs')

for (const codec of [base32, base32c, base32h, base32hp, base32p]) {
  codec.encode(
    codec.decode(crypto.randomBytes(10))
  )
}

License

MIT

Keywords

FAQs

Last updated on 15 Dec 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