# gofood

> Gofood wrapper

Latest version **1.0.1** (published 2020-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install gofood
pnpm add gofood
yarn add gofood
bun add gofood
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-24 |
| First published | 2020-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 217.3 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | suriyadi |
| Maintainers | suriyadi |

## Links

- npm: https://www.npmjs.com/package/gofood
- Repository: https://github.com/suriyadi15/gofood
- Issues: https://github.com/suriyadi15/gofood/issues
- npm.io page: https://npm.io/package/gofood

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.21.1

## Recent versions

- 1.0.1 (latest) — 2020-12-24
- 1.0.0 — 2020-12-24

## README

# Gofood

Un-official Gofood API Wrapper. API end point known from [https://gofood.co.id](https://gofood.co.id/).

## Documentation

### Getting Started

- Using npm

``` npm
npm i gofood
```

- Using yarn

``` npm
yarn add gofood
```

- Include Gofood module

``` ts
import gf from 'gofood'
```

### Usage API

Get Restaurant By Id

``` ts
const restaurant = await gf.getRestaurant(restaurantId, location)
```

Get the nearest restaurant

``` ts
const result = await gf.getRestaurants(location, page, searchId)
```

`location` examples are `-6.2174945,106.8178377`.

`searchId` obtained from result page 1.

---
_Source: https://npm.io/package/gofood · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
