0.0.1 • Published 4 years ago
uvail v0.0.1
uvail
uvail is a js library to check username availability across multiple services.
At this time, you can check:
- google (gmail)
Installation
yarn add uvailor
npm install uvailUsage
Each method returns a promise, which resolves to either
true (available) or false (taken):
import uvail from "uvail";
const username = "test_user";
await uvail.google(username); // google (gmail)Some methods will throw an error if the username is invalid, so be sure to catch rejected promises!
await uvail.google('cat').catch((e) => {
console.log(e); // Sorry, your username must be between 6 and 30 characters long.
});0.0.1
4 years ago