1.0.1 • Published 3 years ago

give-me-profile v1.0.1

Weekly downloads
-
License
MIT License
Repository
-
Last release
3 years ago

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

  • Facebook
  • Instagram
  • LinkedIn
  • 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