{"id":16672329,"url":"https://github.com/blue-hope/give-me-profile","last_synced_at":"2025-07-11T05:42:29.320Z","repository":{"id":125379772,"uuid":"368969903","full_name":"blue-hope/give-me-profile","owner":"blue-hope","description":"Support regex for world-wide SNS's user identifier","archived":false,"fork":false,"pushed_at":"2021-05-21T07:48:52.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T21:51:54.616Z","etag":null,"topics":["facebook","github","gitlab","instagram","linkedin","medium","regex","regex-pattern","sns","stackoverflow","youtube"],"latest_commit_sha":null,"homepage":"","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/blue-hope.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["blue-hope"],"custom":["https://paypal.me/blueh0pe"]}},"created_at":"2021-05-19T18:44:17.000Z","updated_at":"2023-09-04T09:10:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"30be0ad0-6a5c-47ad-9323-df512a292020","html_url":"https://github.com/blue-hope/give-me-profile","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue-hope%2Fgive-me-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue-hope%2Fgive-me-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue-hope%2Fgive-me-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blue-hope%2Fgive-me-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blue-hope","download_url":"https://codeload.github.com/blue-hope/give-me-profile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103915,"owners_count":21048245,"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":["facebook","github","gitlab","instagram","linkedin","medium","regex","regex-pattern","sns","stackoverflow","youtube"],"created_at":"2024-10-12T12:05:53.349Z","updated_at":"2025-04-09T19:53:16.251Z","avatar_url":"https://github.com/blue-hope.png","language":"TypeScript","funding_links":["https://github.com/sponsors/blue-hope","https://paypal.me/blueh0pe"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003egive-me-profile\u003c/h1\u003e\n    \u003cp\u003e\n        \u003cb\u003e Support regex for world-wide SNS's user identifier \u003c/b\u003e\n    \u003c/p\u003e\n    \u003cp\u003e\n        \u003cimg src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fblue-hope%2Fgive-me-profile\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false\" alt=\"hits\"\u003e\n        \u003ca href=\"https://www.npmjs.com/package/give-me-profile\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/give-me-profile.svg\" alt=\"npm\"\u003e\u003c/a\u003e\n        \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/blue-hope/give-me-profile\" alt=\"license\"\u003e\u003c/a\u003e\n    \u003c/p\u003e\n    \u003cbr/\u003e\n\u003c/div\u003e\n\n## Installation\n```shell\n$ npm i give-me-profile --save\n```\n\n## Before Usage\n\u003e 🌐 **Getting Help** — give-me-profile is not yet tested whole accounts of world-wide SNS\n\u003e (and it's quite difficult!) so feel\n\u003e free to opening issues or PR\n\n## How to get user identifier for SNS?\n* **Facebook**\n\u003e For your account, Open https://facebook.com/me on your browser\n\n`SNSList.FACEBOOK_USERNAME`: https://www.facebook.com/[id]\n\n`SNSList.FACEBOOK_PROFILE`: https://www.facebook.com/profile.php?id=[id]\n\n* **Instagram**\n\n`SNSList.INSTAGRAM`: https://www.instagram.com/[id]/\n\n* **LinkedIn**\n\n`SNSList.LINKEDIN`: https://www.linkedin.com/in/[id]/\n\n* **Stackoverflow**\n\n`SNSList.STACKOVERFLOW`: https://stackoverflow.com/users/[id]\n\n* **Github**\n\n`SNSList.GITHUB`: https://github.com/[id]\n\n* **Gitlab**\n\n`SNSList.GITLAB`: https://gitlab.com/[id]\n\n* **Medium**\n\n`SNSList.MEDIUM_PREFIX`: https://[id].medium.com\n\n`SNSList.MEDIUM_SUFFIX`: https://medium.com/[id]\n\n* **Youtube**\n\n`SNSList.YOUTUBE_USER`: https://www.youtube.com/user/[id]\n\n`SNSList.YOUTUBE_CHANNEL`: https://www.youtube.com/channel/[id]\n## Usage\n### We support regex for world-wide SNS's user identifier\n```js\nimport { SNSRegex, SNSList } from \"give-me-profile\";\n\nSNSRegex(SNSList.GITHUB) // /^[a-z\\d](?:[a-z\\d]|-(?=[a-z\\d])){0,38}$/i;\n```\n\n### We provide regex test\n```js\nimport { SNSTester, SNSList } from \"give-me-profile\";\n\nSNSTester(SNSList.GITHUB, \"blue-hope\") // true\nSNSTester(SNSList.GITHUB, \"****\") // false\n```\n\n### We provide whole user profile url for the id above\n```js\nimport { SNSUrlRenderer, SNSList } from \"give-me-profile\";\n\nSNSUrlRenderer(SNSList.GITHUB, \"blue-hope\") // https://github.com/blue-hope\n```\n\n## License\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblue-hope%2Fgive-me-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblue-hope%2Fgive-me-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblue-hope%2Fgive-me-profile/lists"}