Skip to content

bukinoshita/now-domains-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

now-domains-status Build Status

Check now domains availability

Install

$ yarn add now-domains-status

Usage

const nowDomainsStatus = require('now-domains-status')

nowDomainsStatus('bukinoshita.io').then(res => res)
// => { available: false }

API

nowDomainsStatus(domain, [options])

Returns a promise

domain

Type: string
Required

domain name to be checked

options

Type: object

secret

Type: string

If secret is not passed, it will try to get your local secret stored on .now/auth.json. If you don't use now, you must pass a secret. Get one here.

Related

License

MIT © Bu Kinoshita