$ npm i give-me-profile --save
🌐 Getting Help — give-me-profile is not yet tested whole accounts of world-wide SNS (and it's quite difficult!) so feel free to opening issues or PR
For your account, Open https://facebook.com/me on your browser
SNSList.FACEBOOK_USERNAME
: https://www.facebook.com/[id]
SNSList.FACEBOOK_PROFILE
: https://www.facebook.com/profile.php?id=[id]
SNSList.INSTAGRAM
: https://www.instagram.com/[id]/
SNSList.LINKEDIN
: https://www.linkedin.com/in/[id]/
- Stackoverflow
SNSList.STACKOVERFLOW
: https://stackoverflow.com/users/[id]
- Github
SNSList.GITHUB
: https://github.com/[id]
- Gitlab
SNSList.GITLAB
: https://gitlab.com/[id]
- Medium
SNSList.MEDIUM_PREFIX
: https://[id].medium.com
SNSList.MEDIUM_SUFFIX
: https://medium.com/[id]
- Youtube
SNSList.YOUTUBE_USER
: https://www.youtube.com/user/[id]
SNSList.YOUTUBE_CHANNEL
: https://www.youtube.com/channel/[id]
import { SNSRegex, SNSList } from "give-me-profile";
SNSRegex(SNSList.GITHUB) // /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i;
import { SNSTester, SNSList } from "give-me-profile";
SNSTester(SNSList.GITHUB, "blue-hope") // true
SNSTester(SNSList.GITHUB, "****") // false
import { SNSUrlRenderer, SNSList } from "give-me-profile";
SNSUrlRenderer(SNSList.GITHUB, "blue-hope") // https://github.com/blue-hope
MIT License