{"id":21257998,"url":"https://github.com/cuongndc9/numcode","last_synced_at":"2025-03-15T06:23:52.620Z","repository":{"id":65466627,"uuid":"221244645","full_name":"cuongndc9/numcode","owner":"cuongndc9","description":"6️⃣7️⃣ Generating codes is easy and simple.","archived":false,"fork":false,"pushed_at":"2020-08-09T07:39:04.000Z","size":215,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T21:32:34.293Z","etag":null,"topics":["103cuong","code","number-code","numcode","otp-code"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/numcode","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuongndc9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T15:02:34.000Z","updated_at":"2021-09-04T09:11:33.000Z","dependencies_parsed_at":"2023-02-27T14:01:07.054Z","dependency_job_id":null,"html_url":"https://github.com/cuongndc9/numcode","commit_stats":null,"previous_names":["103cuong/numcode","cuonginspire/numcode","cuongnd9/numcode","cuongndc9/numcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fnumcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fnumcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fnumcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongndc9%2Fnumcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuongndc9","download_url":"https://codeload.github.com/cuongndc9/numcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243691338,"owners_count":20331946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["103cuong","code","number-code","numcode","otp-code"],"created_at":"2024-11-21T04:06:48.586Z","updated_at":"2025-03-15T06:23:52.587Z","avatar_url":"https://github.com/cuongndc9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numcode\n\n6️⃣7️⃣ Generating codes is easy and simple.\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg)](#contributors)\n[![Build Status](https://travis-ci.com/103cuong/numcode.svg?branch=master)](https://travis-ci.com/103cuong/numcode)\n![npm](https://img.shields.io/npm/v/numcode.svg)\n![david](https://img.shields.io/david/103cuong/numcode.svg)\n[![Hits-of-Code](https://hitsofcode.com/github/103cuong/numcode)](https://hitsofcode.com/view/github/103cuong/numcode)\n[![GitHub](https://img.shields.io/github/license/103cuong/numcode.svg)](https://github.com/103cuong/numcode/blob/master/LICENSE)\n\n## Installation\n\n```sh\nyarn add numcode\n# or\nnpm install -s numcode\n```\n\n## Usage\n\n**For ES6 or ESNext**\n\n```javascript\nimport { numcode } from 'numcode';\n```\n\n**For CommonJS**\n\n```javascript\nconst { numcode } = require('numcode');\n```\n\n```javascript\nconsole.log(numcode());\n```\n\n```sh\nOutput should be '1998'\n```\n\n## API\n\n### `numcode(length)`\n\n**Returns** `string` unique id with length option (length from 4 to 6).\n\n**Example**\n\n```javascript\nnumcode(6);\n```\n\n```sh\nOutput should be '122856'\n```\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\u003ctr\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"http://103cuong.me\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/34389409?v=4\" width=\"100px;\" alt=\"Cuong Duy Nguyen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCuong Duy Nguyen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/103cuong/thinid/commits?author=103cuong\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/103cuong/thinid/commits?author=103cuong\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/103cuong/thinid/commits?author=103cuong\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#review-103cuong\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\nMIT © [103cuong](https://github.com/103cuong)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongndc9%2Fnumcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuongndc9%2Fnumcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongndc9%2Fnumcode/lists"}