https://github.com/bukinoshita/has-uber
Check if Uber is available in your city
https://github.com/bukinoshita/has-uber
has-uber javascript nodejs uber
Last synced: 8 months ago
JSON representation
Check if Uber is available in your city
- Host: GitHub
- URL: https://github.com/bukinoshita/has-uber
- Owner: bukinoshita
- License: mit
- Created: 2017-03-14T22:38:59.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T01:54:21.000Z (almost 3 years ago)
- Last Synced: 2025-03-17T18:16:14.899Z (9 months ago)
- Topics: has-uber, javascript, nodejs, uber
- Language: TypeScript
- Homepage:
- Size: 720 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# has-uber
> Check if Uber is available in your city
## Install
```bash
$ yarn add has-uber
```
## Usage
```js
const hasUber = require('has-uber')
await hasUber('brazil')
// ~> true
await hasUber('brazil', 'Sao Paulo')
// ~> true
```
## API
### hasUber(country, city)
#### country
Type: `string`
Required
Returns a promise
#### city
Type: `string`
Optional
Returns a promise
## Related
- [has-uber-cli](https://github.com/bukinoshita/has-uber-cli) — Check if Uber is available in your city with CLI
- [uber-availability](https://github.com/bukinoshita/uber-availability) — The API for this module
## License
MIT © [Bu Kinoshita](https://bukinoshita.com)