1.0.1 • Published 4 years ago
give-me-profile v1.0.1
Installation
$ npm i give-me-profile --saveBefore Usage
🌐 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
Usage
We support regex for world-wide SNS's user identifier
SUPPORT LIST
- Stackoverflow
- Github
- Gitlab
- Medium
- Youtube
import { SNSRegex, SNSList } from "give-me-profile";
SNSRegex(SNSList.GITHUB) // /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i;We provide regex test
import { SNSTester, SNSList } from "give-me-profile";
SNSTester(SNSLIST.GITHUB, "blue-hope") // true
SNSTester(SNSList.GITHUB, "****") // falseWe provide whole user profile url for the id above
import { SNSUrlRenderer, SNSList } from "give-me-profile";
SNSUrlRenderer(SNSLIST.GITHUB, "blue-hope") // https://github.com/blue-hopeLicense
MIT License