{"_id":"gid","_rev":"76-4aa4ab3fd57ec44eb4a6bcaaa9d8180c","name":"gid","description":"Genuine ID Generator","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.1":{"name":"gid","description":"Genuine ID Generator","version":"1.0.1","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.0.1","dist":{"shasum":"9e12985a9babca10c84ceb88c88a923eb752fd31","tarball":"https://registry.npmjs.org/gid/-/gid-1.0.1.tgz","integrity":"sha512-LCLg7ux8PF023gY4hJYGS1Va8PYkMw9TeQcE3XENza8g0s2uMGgu9js5MaLTeulayURiQIhQm9rdJqFsLOzuKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3VOBaToioiRWO3E1gm8o2vMdluEQxacpwKKLmgvRTLQIhAK4cyt6na5mqLCWbCTHdEg3RpUXaExMoWHkYYgLUgMV/"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]},"1.0.2":{"name":"gid","description":"Genuine ID Generator","version":"1.0.2","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.0.2","dist":{"shasum":"90b83130e2abcf35033d13d6a532454355802d17","tarball":"https://registry.npmjs.org/gid/-/gid-1.0.2.tgz","integrity":"sha512-U3n0M3nx4y1UUlXKtw6caTs+av+AiOF7Rg9eyXHMeOBKzMmnz+IvLJRBaQNyOqYekDcsaoIJDZIjWNE04wGDxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHCzckfgnxtxs0gVPLL6tRX8hVGbwWEtkxIpeOgcX9ZjAiEAojMBOIse0xUiKKL822frkO/RfGFGgnmoXeUDjF8ILPE="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]},"1.0.5":{"name":"gid","description":"Genuine ID Generator","version":"1.0.5","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","guid","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1","uuid":"~1.4.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.0.5","dist":{"shasum":"144442e86d62ee0979b6bf6ad6eea850b51963a4","tarball":"https://registry.npmjs.org/gid/-/gid-1.0.5.tgz","integrity":"sha512-l5oh0XSAUkgA57sZ1Ry/e18yrlRExVys72htT18fYMENfhAsKM3x4fiVtPCqvIw/fxfNhCPCOss59t461u4Z7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDnXDLyO3qYKUKbavp3FgseoMoElQgnsh80KoDNNlHdAIgLmbqXr/HIGQYGawyM0WsrtzR1qh79zFDXRYELAzc8ic="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]},"1.0.7":{"name":"gid","description":"Genuine ID Generator","version":"1.0.7","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","guid","jsonp","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1","uuid":"~1.4.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.0.7","dist":{"shasum":"8744960be4e8cc2da27af3cd9d1e9861006c47e3","tarball":"https://registry.npmjs.org/gid/-/gid-1.0.7.tgz","integrity":"sha512-pMyMLO7R/a7p+gLjgvZ+RQ9ZKgTqKRQBYcWMLlSBxTHa7AT0u9AweDWL9eNwyxSDV1LX4dIpphDm7jqyl5zPKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvtf3mYMQRd3lNmOHqd8PKbl3LFDKw4o7qxANGiyj+AAIgYpzQUGzL/O25EYk7tAJcKRCnUzBmyqa2e3PiYjVD/yg="}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]},"1.0.8":{"name":"gid","description":"Genuine ID Generator","version":"1.0.8","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","guid","jsonp","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1","uuid":"~1.4.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.0.8","dist":{"shasum":"d8748709ec292ff6db1a2051386ae91aec8ed3f9","tarball":"https://registry.npmjs.org/gid/-/gid-1.0.8.tgz","integrity":"sha512-Jij/o9YRuB9dcseyZQUgj5vBH9sxCKl1udWPrbJn5E47HOfId5k+5KsiOZtN7FbERhkiI5iyaLi+y7sEoDjxQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxMfNzM5wMLL85dwUtYBBWolfEK5UsT2sC89JxFnx22wIhAP7oBqvIniAwA7faQ8EnorF77QqzUVzqBLSnFHOinpgX"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]},"1.1.1":{"name":"gid","description":"Genuine ID Generator","version":"1.1.1","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","guid","jsonp","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1","uuid":"~1.4.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.1.1","dist":{"shasum":"1caab47cd11afc54657b81cdff40c555dee56f93","tarball":"https://registry.npmjs.org/gid/-/gid-1.1.1.tgz","integrity":"sha512-CE9Av0VmYVUKB7xSaAv3Lbofyb0zWpsUs7kRCn30inx1JuMp99ZsHpJZDGDpO9D/PGW8IATNGgAceCIoI80E+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBt7Eej4lbADMks70QYxsvWoGJ8AbXY6WOkvgl5oGjT1AiEAtooPE0RmRnjbOX20gbNSrqD3SZkV3wkVnLi4Hz1Bg7Y="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]},"1.1.2":{"name":"gid","description":"Genuine ID Generator","version":"1.1.2","author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"homepage":"https://github.com/konteck/gid","repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"bin":{"gid":"./bin/gid"},"keywords":["id","guid","jsonp","distributed","unique","cli","rest"],"main":"./lib/gid.js","dependencies":{"restify":"~2.6.1","optimist":"~0.6.1","uuid":"~1.4.1"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"_id":"gid@1.1.2","dist":{"shasum":"9810302b94f86833530699c3f6769b84b411a33a","tarball":"https://registry.npmjs.org/gid/-/gid-1.1.2.tgz","integrity":"sha512-sbiWo9XWA4s5oUsOUqtCRe0FwZGqMM8Cdizg3mtV/2BaJs22Fz1LDSXEkjuwaXciY8IYPmy4sjtaPdx14gV9wg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICfmFh0uCRFtM/at6e44df257GwSzMb2A0EnU/2HMkRmAiBO6+ysZdDw3fVYHbwUoM0FxoCRBdALfeYm/Rb6/CDFrw=="}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"konteck","email":"dev@movsisyan.com"},"maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}]}},"readme":"# GID\n\nGenuine ID Generator.\n\n[![Build Status](https://travis-ci.org/konteck/gid.png)](https://travis-ci.org/konteck/gid)\n\n## Installation\n\n    $ npm install gid -g\n\n## Features\n\n  * REST interface that listen for both GET and POST requests\n  * Command line ID generation support\n  * Can be required from node.js code itself\n  * You can specify custom ID template for every newly generated ID\n  * ID returned as string so can have any complexity and as well as length\n\n## Usage\n\nRun as standalone server\n\n    gid --server --port=8080 --template={time}{seq} --epoch=01-01-2010\n\nRequest ID via CURL\n\n    curl http://127.0.0.1:8080/?template={guid1}\n\nCall from node.js code\n\n    var gid = require('gid');\n\n    gid.getID({ template: ['time', 'seq'] }, function(id){ console.log(id); }); // Asynchronously generate new ID\n\n    gid.start({ port: 8080 }); // or run as server with same options\n\nGenerate new ID from command line\n\n    gid --get_id\n\n## Template\n\nIts possible to use any character in generated ID additional to predefined keywords:\n\n    {time}  - passed time since epoch in seconds\n    {seq}   - sequence number: will prevent same second ID collision\n    {guid1} - generate and return a RFC4122 v1 (timestamp-based) UUID\n    {guid4} - generate and return a RFC4122 v4 UUID\n    {rand}  - generate 4 symbol random number\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2014 Alex Movsisyan\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/konteck/gid/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","maintainers":[{"name":"konteck","email":"dev@movsisyan.com"}],"time":{"modified":"2022-06-18T08:16:59.993Z","created":"2014-03-02T14:49:16.044Z","1.0.1":"2014-03-02T14:49:18.408Z","1.0.2":"2014-03-02T15:23:35.272Z","1.0.3":"2014-03-02T17:05:25.966Z","1.0.4":"2014-03-02T17:13:57.587Z","1.0.5":"2014-03-02T17:17:05.240Z","1.0.6":"2014-03-02T17:36:06.105Z","1.0.7":"2014-03-10T09:43:14.117Z","1.0.8":"2014-03-10T23:11:08.592Z","1.0.9":"2014-03-10T23:22:01.828Z","1.0.10":"2014-03-10T23:24:57.758Z","1.1.1":"2014-03-11T13:41:20.686Z","1.1.2":"2014-03-11T16:17:13.851Z"},"readmeFilename":"README.md","homepage":"https://github.com/konteck/gid","keywords":["id","guid","jsonp","distributed","unique","cli","rest"],"repository":{"type":"git","url":"https://github.com/konteck/gid.git"},"author":{"name":"Alex Movsisyan","email":"node@movsisyan.com"},"bugs":{"url":"https://github.com/konteck/gid/issues"},"users":{}}