# picotube

> Minimal library to get data from youtube

Latest version **0.0.5** (published 2018-05-21) · GPLv3.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-05-21 |
| First published | 2018-05-03 |
| Weekly downloads | 0 |
| License | GPLv3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 133.7 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Niv Sardi |
| Maintainers | xaiki |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.0.5 (latest) — 2018-05-21
- 0.0.4 — 2018-05-17
- 0.0.3 — 2018-05-10
- 0.0.2 — 2018-05-03
- 0.0.1 — 2018-05-03

## README

PicoTube: a tiny Youtube API library with promises

# install

just run `yarn add picotube`

# usage

we map exactly to the youtube API REST names, note that we only implement
the `list` behaviour
<https://developers.google.com/youtube/v3/docs/>

so to use the `videos` endpoint simply do
```js
    import PicoTube from 'picotube'

    const pico = new PicoTube(API_KEY)
    pico.videos({
      id: 'QcQIaoHajoM'
    }).then(res => res.data)
      .then(info => {
        console.log('hello mom, i got this from youtube', info)
    })
```

note that we return the raw `axios` object, so errors live in `response.data.error`

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