Socket
Socket
Sign inDemoInstall

uuid-d64

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uuid-d64

Codec for uuid and d64


Version published
Weekly downloads
331
decreased by-3.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

uuid-64

Codec between uuid and d64

Install

$ npm install uuid-d64

Usage

const { encode, decode } = require('uuid-d64');

const id = uuid();
const encoded = encode(id);
const decoded = decode(encoded);

console.log(id);
console.log(encoded);
console.log(decoded);

API

encode(str)

Encodes uuid to d64

decode(str)

Decodes d64 to uuid

str

Type: String

Benchmark

$ node bench.js
check x 240,661 ops/sec ±0.84% (89 runs sampled)
uuid-d64 x 724,673 ops/sec ±0.78% (94 runs sampled)
uuid-base64 x 419,574 ops/sec ±0.83% (92 runs sampled)
Fastest encoder is uuid-d64
check x 335,976 ops/sec ±45.06% (86 runs sampled)
uuid-d64 x 1,400,018 ops/sec ±1.56% (89 runs sampled)
uuid-base64 x 1,330,022 ops/sec ±2.11% (85 runs sampled)
Fastest decoder is uuid-d64

License

Source files are distributed under the Apache Version 2.0 license found in the LICENSE file.

Keywords

FAQs

Last updated on 28 Feb 2019

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