now-name
Check whether a '.now.sh' domain name is available on ZEIT Now.
Install
~ ❯❯❯ npm install now-name
Usage
const nowName = ; async { // Check an alias name console; //=> false console; //=> false console; //=> true const result = await nowName; console; //=> false console; //=> false console; //=> true try await ; catch error console; // Invalid domain name "_ABC" };
API
nowName(name)
Check whether a .now.sh
domain name is available (not registered) on ZEIT Now.
Returns a Promise<boolean>
of whether the given domain is available.
name
Type: string
Name to check.
nowName.many(names)
Check whether multiple .now.sh
domain names are available (not registered) on ZEIT Now.
Returns a Promise<Map>
of name and status.
names
Type: string[]
Multiple names to check.
Credits
- npm-name - this module is essentially a fork of
npm-name
, modified to check the availability of ZEIT Now's.now.sh
domain names, instead of NPM package names
Related
- now-name-cli - CLI for this module
License
MIT © Nikolaos Kamarinakis