🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

shimo-guid

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shimo-guid

A Guid generator and validator.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

guid

A Guid generator and validator.

THIS 'GUID' FORMAT LIKE 'Il9Bq9ZXtojcdPNm'(REG: /^[A-Za-z0-9]+$/).

Example && APIS


const Guid = require('shimo-guid');

Guid.isGuid('Il9Bq9ZXtojcdPNm'); // true
Guid.fromInt(10000); // 'lS', the first argument must be an unsigned integer
Guid.toInt('BAC'); // 1 * 62 * 62 + 0 + 2 = 3846
Guid.new(16); // generate a new one, default length is 16

To begin

  • Install it:

    $ npm install shimo-guid --save
    
  • Require it and use:

    var Guid = require('shimo-guid');
    var guid = Guid.new();
    

License

MIT © ChuXin Tech

FAQs

Package last updated on 19 May 2016

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