{"_id":"guid","_rev":"26476","name":"guid","description":"A Guid generator and validator.","dist-tags":{"latest":"0.0.12"},"maintainers":[{"name":"dandean","email":""}],"time":{"modified":"2021-06-03T10:02:40.000Z","created":"2011-07-13T06:18:20.454Z","0.0.12":"2013-12-20T23:35:16.453Z","0.0.11":"2013-11-20T05:38:07.251Z","0.0.10":"2011-07-13T06:31:43.011Z","0.0.9":"2011-07-13T06:28:39.676Z","0.0.8":"2011-07-13T06:20:11.963Z","0.0.7":"2011-07-13T06:18:20.454Z","0.0.6":"2011-07-13T06:18:20.454Z","0.0.5":"2011-07-13T06:18:20.454Z"},"users":{"iksnae":true,"etsit":true,"justintormey":true,"vwal":true,"brad-christie":true,"knoja4":true,"ugcode":true,"gurunate":true,"akinjide":true,"leonardorb":true,"icognivator":true,"danielye":true},"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"versions":{"0.0.12":{"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"name":"guid","description":"A Guid generator and validator.","version":"0.0.12","homepage":"https://github.com/dandean/guid","repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"scripts":{"test":"mocha -R spec -u tdd tests/*.js"},"contributors":[{"name":"Tommy Messbauer"}],"main":"./guid","licenses":[{"type":"MIT","url":"https://github.com/dandean/guid/raw/master/LICENSE"}],"ender":"./ender.js","devDependencies":{"mocha":"~1.14.0"},"testling":{"browsers":{"ie":[6,7,8,9,10],"ff":[24,25,"nightly"],"chrome":[28,29,30,31,"canary"],"safari":["5.0.5",5.1],"android-browser":[4.2],"opera":[17,"next"],"iphone":[6],"ipad":[6]},"harness":"mocha-tdd","files":"tests/*.js"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/dandean/guid/issues"},"_id":"guid@0.0.12","dist":{"shasum":"9137c52b185f7de12490b9bebcc1660b9025fe0c","size":3084,"noattachment":false,"key":"/guid/-/guid-0.0.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.12.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dandean","email":"me@dandean.com"},"maintainers":[{"name":"dandean","email":""}],"directories":{},"publish_time":1387582516453,"_cnpm_publish_time":1387582516453,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.11":{"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"name":"guid","description":"A Guid generator and validator.","version":"0.0.11","homepage":"https://github.com/dandean/guid","repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"scripts":{"test":"mocha -R spec -u tdd tests/*.js"},"contributors":[{"name":"Tommy Messbauer"}],"main":"./guid","licenses":[{"type":"MIT","url":"https://github.com/dandean/guid/raw/master/LICENSE"}],"ender":"./ender.js","devDependencies":{"mocha":"~1.14.0"},"testling":{"browsers":{"ie":[6,7,8,9,10],"ff":[24,25,"nightly"],"chrome":[28,29,30,31,"canary"],"safari":["5.0.5",5.1],"android-browser":[4.2],"opera":[17,"next"],"iphone":[6],"ipad":[6]},"harness":"mocha-tdd","files":"tests/*.js"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/dandean/guid/issues"},"_id":"guid@0.0.11","dist":{"shasum":"21bcd02cde704b226652e6be78c15fef45bfdbc0","size":3036,"noattachment":false,"key":"/guid/-/guid-0.0.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.11.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dandean","email":"me@dandean.com"},"maintainers":[{"name":"dandean","email":""}],"directories":{},"publish_time":1384925887251,"_cnpm_publish_time":1384925887251,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.10":{"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"name":"guid","description":"A Guid generator and validator.","version":"0.0.10","homepage":"https://github.com/dandean/guid","repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"main":"./guid","licenses":[{"type":"MIT","url":"https://github.com/dandean/guid/raw/master/LICENSE"}],"ender":"./ender.js","_npmJsonOpts":{"file":"/Users/dand/.npm/guid/0.0.10/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"guid@0.0.10","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"1cc2afe26d933114dcd255740318ae577284ec2b","size":2460,"noattachment":false,"key":"/guid/-/guid-0.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.10.tgz"},"scripts":{},"directories":{},"publish_time":1310538703011,"maintainers":[{"name":"dandean","email":""}],"_cnpm_publish_time":1310538703011,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.9":{"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"name":"guid","description":"A Guid generator and validator.","version":"0.0.9","homepage":"https://github.com/dandean/guid","repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"main":"./guid","licenses":[{"type":"MIT","url":"https://github.com/dandean/guid/raw/master/LICENSE"}],"ender":"./ender.js","_npmJsonOpts":{"file":"/Users/dand/.npm/guid/0.0.9/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"guid@0.0.9","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"23926f2490b6c37076f08fa9caa04f8513b1bddb","size":2458,"noattachment":false,"key":"/guid/-/guid-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.9.tgz"},"scripts":{},"directories":{},"publish_time":1310538519676,"maintainers":[{"name":"dandean","email":""}],"_cnpm_publish_time":1310538519676,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.8":{"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"name":"guid","description":"A Guid generator and validator.","version":"0.0.8","homepage":"https://github.com/dandean/guid","repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"main":"./guid","licenses":[{"type":"MIT","url":"https://github.com/dandean/guid/raw/master/LICENSE"}],"ender":"./ender.js","_npmJsonOpts":{"file":"/Users/dand/.npm/guid/0.0.8/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"guid@0.0.8","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"214bb50bac30a7eef2a39cbb8b40bfad150bd122","size":2454,"noattachment":false,"key":"/guid/-/guid-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.8.tgz"},"scripts":{},"directories":{},"publish_time":1310538011963,"maintainers":[{"name":"dandean","email":""}],"_cnpm_publish_time":1310538011963,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.7":{"author":{"name":"Dan Dean","email":"@dandean","url":"http://dandean.com"},"name":"guid","description":"A Guid generator and validator.","version":"0.0.7","homepage":"https://github.com/dandean/guid","repository":{"type":"git","url":"git://github.com/dandean/guid.git"},"main":"./guid","licenses":[{"type":"MIT","url":"https://github.com/dandean/guid/raw/master/LICENSE"}],"ender":"./ender.js","_npmJsonOpts":{"file":"/Users/dand/.npm/guid/0.0.7/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"guid@0.0.7","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.5","_defaultsLoaded":true,"dist":{"shasum":"9c188d811982ae4d24fad0394cbebb72b9fb68cf","size":2455,"noattachment":false,"key":"/guid/-/guid-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.7.tgz"},"scripts":{},"directories":{},"publish_time":1310537900454,"maintainers":[{"name":"dandean","email":""}],"_cnpm_publish_time":1310537900454,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.6":{"name":"guid","description":"A Guid generator and validator.","version":"0.0.6","homepage":"http://github.com/dandean/guid","author":{"name":"Dan Dean","email":"me@dandean.com","url":"http://dandean.com"},"contributors":[],"repository":{"type":"git","url":"http://github.com/dandean/guid.git"},"bugs":{"mail":"me@dandean.com","web":"http://github.com/dandean/guid/issues"},"main":"guid","engines":{"node":">=0.2.0"},"licenses":[{"type":"MIT","url":"http://github.com/dandean/guid/raw/master/LICENSE"}],"_id":"guid@0.0.6","_nodeSupported":true,"dist":{"shasum":"de4bfc0eeb9097f07b46ae39faef4c0d80eb1a29","size":2809,"noattachment":false,"key":"/guid/-/guid-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.6.tgz"},"directories":{},"publish_time":1310537900454,"maintainers":[{"name":"dandean","email":""}],"_cnpm_publish_time":1310537900454,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false},"0.0.5":{"name":"guid","description":"A Guid generator and validator.","version":"0.0.5","homepage":"http://github.com/dandean/guid","author":{"name":"Dan Dean","email":"me@dandean.com","url":"http://dandean.com"},"contributors":[],"repository":{"type":"git","url":"http://github.com/dandean/guid.git"},"bugs":{"mail":"me@dandean.com","web":"http://github.com/dandean/guid/issues"},"main":"guid","engines":{"node":">=0.2.0"},"licenses":[{"type":"MIT","url":"http://github.com/dandean/guid/raw/master/LICENSE"}],"_id":"guid@0.0.5","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"b85da463d31d2d0cc1542987b6679afd1833313f","size":2069,"noattachment":false,"key":"/guid/-/guid-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/guid/download/guid-0.0.5.tgz"},"directories":{},"publish_time":1310537900454,"maintainers":[{"name":"dandean","email":""}],"_cnpm_publish_time":1310537900454,"deprecated":"Please use node-uuid instead. It is much better.","_hasShrinkwrap":false}},"readme":"# Guid lets you generate and validate unique identifiers.\n\n[![browser support](https://ci.testling.com/tommydudebreaux/guid.png)](https://ci.testling.com/tommydudebreaux/guid)\n\nIn its simplest form, Guid lets you generate raw GUID formatted strings:\n\n    Guid.raw();\n    // -> '6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d'\n\nLet's generate a new Guid instance.\n\n    var guid = Guid.create();\n\nWe've now got an object which we can work with programmatically. Lets check the\nvalidity of our Guid using the built-in validator:\n\n    Guid.isGuid(guid);\n    // -> true\n    \n    Guid.value;\n    // -> '6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d'\n\nA handy bit of functionality is that its `toString` method returns the string\nvalue, so you can do handy things like this:\n\n    var itemUrl = \"http://whatever.com/items/\" + guid;\n    // -> 'http://whatever.com/items/6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d'\n    \nIf you need a placeholder Guid, or a value to represent a non-GUID, use the\nstatic `EMPTY` property:\n\n    Guid.EMPTY;\n    // -> '00000000-0000-0000-0000-000000000000'\n\nOnce you have a `Guid` object, you can't change its value (thanks ES5!):\n\n    guid.value = \"go suck it, guid!\"\n    guid.value;\n    // -> '6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d'\n\nTo instantiate an Guid object using an existing GUID string, use the constructor:\n\n    var guid = new Guid('6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d');\n\nYou can check the equality of two different Guid objects using the `equals`\ninstance method.\n\nCompare a Guid object to a GUID string:\n\n    guid.equals('6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d');\n    // -> true\n\nCompare two Guid objects:\n    \n    guid.equals(new Guid('6fdf6ffc-ed77-94fa-407e-a7b86ed9e59d'));\n    // -> true\n\n## Installation\n\nYou can use npm to install guid: `npm install guid`\n\n\n## But what if I need a UUID, not a GUID?\n\nThere's also a [Uuid](https://github.com/dandean/uuid-lib) library which has the\n**exact** same functionality, but for UUID's:\n[https://github.com/dandean/uuid-lib](https://github.com/dandean/uuid-lib)\n\n","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/dandean/guid","bugs":{"url":"https://github.com/dandean/guid/issues"}}