Giter Site home page Giter Site logo

guidjs's Introduction

GUID.JS

1.4.0

A simple script for generating a Globally Unique Identifiers (GUID) in JavaScript.

Create a new GUID

Use the GUID function (or GUID.create) to create a new GUID.

var myGuid = GUID();
// or
var myGuid = GUID.create();

Get a list of all GUIDs

Use GUID.list to get a full list of all registered GUIDs.

GUID.list

Check if a GUID exists

Use the GUID.exists(guid) method to check if a GUID already exists.

GUID.exists("885b8819-5bb3-467b-9e6b-62ca997b55a5");

Register a GUID

Use the GUID.register method to register a GUID so that it will not be used again. This can be useful to sync the GUID list with a database on your server and then generate new GUIDs that are truely unique to your database.

This returns true if the GUID did not previously exist and was successfully registered, false if the GUID previously existed.

GUID.register("885b8819-5bb3-467b-9e6b-62ca997b55a5");

GUID.JS Version

Use GUID.version to check the version number of this script.

GUID.version

#License

This software is property of Dustin Poissant.

This software is distributed AS-IS with no warranties/guarantees either expressed or implied.

This software is Licensed under CC BY-NC-SA 3.0 US.

guidjs's People

Contributors

dustinpoissant avatar

Stargazers

Kerem Kayacan avatar CodeDmitry avatar Maxime Kubik avatar Dmitry Zhdanov avatar

Watchers

James Cloos avatar

Forkers

rameshnitt123

guidjs's Issues

Don't expose list

Do not expose the list variable as a private member but rather use the already existing scope to not expose it globally.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.