uvail

0.0.1 • Public • Published

uvail

uvail is a js library to check username availability across multiple services. At this time, you can check:

  • google (gmail)

Installation

yarn add uvail

or

npm install uvail

Usage

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.
});

/uvail/

    Package Sidebar

    Install

    npm i uvail

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    3.25 kB

    Total Files

    10

    Last publish

    Collaborators

    • ncpierson