# inegi-denue

> A INEGI DENUE wrapper client. Available only to México

Latest version **2.0.3** (published 2016-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install inegi-denue
pnpm add inegi-denue
yarn add inegi-denue
bun add inegi-denue
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2016-03-21 |
| First published | 2016-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nestor López |
| Maintainers | nesslopz |
| Keywords | inegi, denue, bussiness, mexico |

## Links

- npm: https://www.npmjs.com/package/inegi-denue
- Repository: https://github.com/nesslopz/inegi-denue
- Homepage: https://github.com/nesslopz/inegi-denue#readme
- Issues: https://github.com/nesslopz/inegi-denue/issues
- npm.io page: https://npm.io/package/inegi-denue

## Dependencies (1)

- [client-request](https://npm.io/package/client-request.md) ^1.0.1

## Recent versions

- 2.0.3 (latest) — 2016-03-21
- 2.0.2 — 2016-03-21
- 2.0.1 — 2016-03-21
- 2.0.0 — 2016-03-21
- 1.1.1 — 2016-01-02
- 1.1.0 — 2016-01-02
- 1.0.4 — 2016-01-02
- 1.0.2 — 2016-01-02
- 1.0.1 — 2016-01-02
- 1.0.0 — 2016-01-02

## README

# inegi-denue
_NodeJs module to serve JSON data from INEGI DENUE API, a 'KEY TOKEN' is required_
> site: http://www.beta.inegi.org.mx/servicios/api_denue.html

## Installation

``` js
npm install inegi-denue --save
```

## Usage

``` js
var denue = require('inegi-denue')

var client = denue.createClient()

client.places(latitude, longitude, function (err, places) {
  //  Do something places
})

client.places(latitude, longitude, {close: 1500}, function (err, places) {
  // Find all places around 1,500 meters
})

client.search('restaurantes', latitude, longitude, function (err, places) {
  // Do something places
})

client.search('restaurantes', latitude, longitude, {close: 5000} function (err, places) {
  // Search 'restaurantes' in a 5000 meters radio
})
```

## Tests

``` js
'env INEGI_API_TOKEN="KEY_TOKEN" npm test'
```
'KEY_TOKEN' is exactly that String for test Only (using nock)

### Coverage
``` js
env INEGI_API_TOKEN="KEY_TOKEN" npm run coverage
```

## Production

``` js
env INEGI_API_TOKEN="'KEY_TOKEN'" node
```
'KEY_TOKEN' is a *Required* String
> get it from: http://www.inegi.org.mx/desarrolladores/denue/apidenue.aspx

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