Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bukinoshita/now-domains-price
Check now domains price
https://github.com/bukinoshita/now-domains-price
availability check domain now price pricing status zeit
Last synced: about 1 month ago
JSON representation
Check now domains price
- Host: GitHub
- URL: https://github.com/bukinoshita/now-domains-price
- Owner: bukinoshita
- Created: 2017-09-25T16:51:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T02:39:04.000Z (over 2 years ago)
- Last Synced: 2024-12-16T21:38:58.435Z (about 1 month ago)
- Topics: availability, check, domain, now, price, pricing, status, zeit
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# now-domains-price [![Build Price](https://travis-ci.org/bukinoshita/now-domains-price.svg?branch=master)](https://travis-ci.org/bukinoshita/now-domains-price)
> Check now domains price
## Install
```bash
$ yarn add now-domains-price
```## Usage
```js
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`
Requireddomain 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](https://zeit.co/now), you must pass a `secret`. Get one [here](https://zeit.co/account/tokens).
## Related
- [now-domains](https://github.com/bukinoshita/now-domains) — CLI for this module
- [now-domains-status](https://github.com/bukinoshita/now-domains-status) — Check now domains availability## License
MIT © [Bu Kinoshita](https://bukinoshita.io)