give-me-profile
v1.0.1
Published
Support regex for world-wide SNS's user identifier
Downloads
1
Readme
Installation
$ npm i give-me-profile --save
Before 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, "****") // false
We 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-hope
License
MIT License