1.0.6 • Published 5 years ago

uuid22 v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

uuid22

A short, url friendly uuid module, contain: A-Za-z0-9_-

Installation

Install via npm:

$ npm i uuid22

Usage

Create a short uuid22

const uuid22 = require('uuid22')

let id = uuid22.create()
// 3esn_9mgRiS_TUYVBi2u1A
// "id" length is 22

decode / encode

let uuid = uuid22.decode(id)
let orgin = uuid22.encode(uuid)
assert.equal(id, orgin, 'uuid22.encode() should equal orgin')

API

// No more require uuid
uuid22 {
  create,
  encode,
  decode,
  uuidv1,
  uuidv4,
  uuidv5
}

Authors

Yanglin (i@yangl.in)

License

Copyright (c) 2018 Yanglin

Released under the MIT license

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago