Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including now-name-cli with all npm packages installed. Try it out:

var nowNameCli = require("now-name-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

now-name-cli v1.0.2

Check whether a '.now.sh' domain name is available on ZEIT Now

now-name-cli Build Status

Check whether a .now.sh domain name is available on ZEIT Now.

Install

~ ❯❯❯ npm install --global now-name-cli

Usage

~ ❯❯❯ now-name --help

  Usage
    $ now-name <name>

  Examples
    $ now-name carbon
    ✖ carbon is unavailable
    $ now-name xyz123
    ✔ xyz123 is available
    $ now-name deploy.now.sh thisisavailable
    ✖ deploy.now.sh is unavailable
    ✔ thisisavailable is available

  Exits with code 0 when all names are available or 2 when any names are taken

Credits

  • npm-name-cli - this module is essentially a fork of npm-name-cli, modified to check the availability of ZEIT Now's .now.sh domain names, instead of NPM package names

Related

License

MIT © Nikolaos Kamarinakis

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free