# valencia

> Tiny helper to fetch Instagram posts. 553 bytes gzipped.

Latest version **1.0.1** (published 2018-02-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-02-15 |
| First published | 2016-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | estrattonbailey |
| Maintainers | estrattonbailey |
| Keywords | instagram |

## Links

- npm: https://www.npmjs.com/package/valencia
- Repository: https://github.com/estrattonbailey/valencia
- Homepage: https://github.com/estrattonbailey/valencia#readme
- Issues: https://github.com/estrattonbailey/valencia/issues
- npm.io page: https://npm.io/package/valencia

## Dependencies (1)

- [micro-jsonp](https://npm.io/package/micro-jsonp.md) ^1.0.4

## Recent versions

- 1.0.1 (latest) — 2018-02-15
- 1.0.0 — 2018-02-15
- 0.0.3 — 2016-09-29
- 0.0.2 — 2016-09-27
- 0.0.1 — 2016-09-27

## README

# valencia
Tiny helper to fetch Instagram posts. **553 bytes gzipped.**

## Install
```bash
npm i valencia --save
```

## Usage
```javascript
import valencia from 'valencia'

const feed = valencia({
  token: 'ACCESS_TOKEN',
  count: 4 // # of posts to fetch
}, ({ images, res, next }) => {
  // render data
})

console.dir(feed)
/*
{
  images: [...], // 4 images fetched and metadata
  res: {...}, // full response from Instagram
  next: function(done) // fetch next 4 posts
}
*/

feed.next(({images, res, next}) => // render next posts)
```

## Dependencies 
- [micro-jsonp](https://github.com/estrattonbailey/micro-jsonp/) A hyper-minimal standalone jsonp implementation in ES6. by [@estrattonbailey](https://github.com/estrattonbailey)

## License
MIT License © [Eric Bailey](https://estrattonbailey.com)

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