Skip to content

bukinoshita/now-domains-price

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

now-domains-price Build Price

Check now domains price

Install

$ yarn add now-domains-price

Usage

const nowDomainsPrice = require('now-domains-price')

nowDomainsPrice('domain.com').then(res => res)
// => { price: 15, period: 1 }

API

nowDomainsPrice(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