{"id":19553395,"url":"https://github.com/digicorp/id-management-module","last_synced_at":"2026-06-11T03:31:49.520Z","repository":{"id":57271063,"uuid":"70891998","full_name":"digicorp/id-management-module","owner":"digicorp","description":"id-management-module is used to generate unique id(key) based on some rule.This rules are provided as a array of rules JSON.","archived":false,"fork":false,"pushed_at":"2016-10-17T06:30:28.000Z","size":5843,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-07T08:23:56.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digicorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-14T08:51:13.000Z","updated_at":"2016-10-14T09:58:43.000Z","dependencies_parsed_at":"2022-09-06T21:50:42.401Z","dependency_job_id":null,"html_url":"https://github.com/digicorp/id-management-module","commit_stats":null,"previous_names":["chandrakantthakkardigicorp/id-management-module"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digicorp/id-management-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digicorp%2Fid-management-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digicorp%2Fid-management-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digicorp%2Fid-management-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digicorp%2Fid-management-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digicorp","download_url":"https://codeload.github.com/digicorp/id-management-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digicorp%2Fid-management-module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34181554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T04:23:05.830Z","updated_at":"2026-06-11T03:31:49.501Z","avatar_url":"https://github.com/digicorp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## id-management-module\n#### Author: Chandrakant Thakkar\n##### Created on: 14th Oct 2016\n\n---\n###### id-management-module is used to generate unique id(key) based on some rule.This rules are provided as a array of rules JSON.\n\n- This unique key may be consist of from static value,dynamic value,contains current date/time or contains user given date/time and format.\n\n- Rule's array for static value\n```javascript  \nvar keyRule = [{\n  type: \"static\",\n  value: \"UNIQUEKEY\"\n}];\nvar generateUniqueId = require('id-management-module');  \nvar uniqueKey=generateUniqueId.generateID(keyRule);\n```\n\n- Here, it will generate  key with value 'UNIQUEKEY' and return same.\n\n- Rule's array for static value and dynamic value\n```javascript  \n var keyRule = [{\n   type: \"static\",\n   value: \"UNIQUEKEY\"\n }, {\n   type: \"dynamic\",\n   value: \"plantCode\"\n }];\n var data={\n  plantCode:\"3001\"\n };\nvar generateUniqueId = require('id-management-module');  \nvar uniqueKey=generateUniqueId.generateID(keyRule,data);\n```\n- Here, it will take static value 'UNIQUEKEY' from static rule and take dynamic value '3001' from plantCode passed into data.And it will return key 'UNIQUEKEY3001'.\n\n- Rule's array for static value and dynamic value with current Date/Time\n```javascript  \n var keyRule = [{\n   type: \"static\",\n   value: \"UNIQUEKEY\"\n }, {\n   type: \"dynamic\",\n   value: \"plantCode\"\n }, {\n   type: \"currdatetime\",\n   format: \"%y%m%d\"\n }];\n var data={\n  plantCode:\"3001\"\n };\nvar generateUniqueId = require('id-management-module');  \nvar uniqueKey=generateUniqueId.generateID(keyRule,data);\n```\n- Here, it will take static value 'UNIQUEKEY' from static rule and take dynamic value '3001' from plantCode passed into data and current date/time in YYYYMMDD format.And it will return key 'UNIQUEKEY300120161014'.\n\n- Rule's array for static value and dynamic value with user defined Date/Time\n```javascript  \n var keyRule = [{\n   type: \"static\",\n   value: \"UNIQUEKEY\"\n }, {\n   type: \"dynamic\",\n   value: \"plantCode\"\n }, {\n   type: \"userdatetime\",\n   format: \"%y%m%d\",\n   value:\"2016-10-14\"\n }];\n var data={\n  plantCode:\"3001\"\n };\nvar generateUniqueId = require('id-management-module');  \nvar uniqueKey=generateUniqueId.generateID(keyRule,data);\n```\n- Here, it will take static value 'UNIQUEKEY' from static rule and take dynamic value '3001' from plantCode passed into data and user defined date/time in YYYYMMDD format.And it will return key 'UNIQUEKEY300120161014'.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigicorp%2Fid-management-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigicorp%2Fid-management-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigicorp%2Fid-management-module/lists"}