open-index/open-npm huggingface dataset:
npm package: @joegesualdo/capture-output-node
Description: Capture console.log output. Useful for testing cli modules.
Author: Joe Gesualdo
Latest version: 0.0.2

## capture-output [![Build Status](https://travis-ci.org/joegesualdo/capture-output-node.svg?branch=master)](https://travis-ci.org/joegesualdo/capture-output-node)
> Capture console.log output. Useful for testing cli modules.

## Install
```
$ npm install --save @joegesualdo/capture-output-node 
```

## Usage
```javascript
import CaptureOutput from '@joegesualdo/capture-output-node';

var capturedOutput = new CaptureOutput();

console.log('Woowee')

capturedOutput.get()
.then((output) => {
  // output === 'Woowee'
})
```

## Test
```
$ npm test
```
## API

### `constructor()`
> Creates an intance of CaptureOutput 

Returns: `CapturedOutput`, instance of CaptureOutput 

```javascript
import CaptureOutput from '@joegesualdo/capture-output-node';

var capturedOutput = new CaptureOutput();
```

### `get()`
> Gets the output that was captured from the time you created the CaptureOutput instance. 

Returns: `Promise`, The promise passes a string (utf8) that represent everything that was printed to the output since the instance of CatpureOuput was initialized.

```javascript
import CaptureOutput from '@joegesualdo/capture-output-node';

var capturedOutput = new CaptureOutput();

console.log('Woowee')

capturedOutput.get()
.then((output) => {
  // output === 'Woowee'
})
```
## Build
```
$ npm run build
```

## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/get-meta-information-from-html
Description: Get <meta> tags information from HTML.
Author: Joe Gesualdo
Latest version: 0.0.3

## @joegesualdo/get-meta-information-from-html [![Build Status](https://travis-ci.org/joegesualdo/get-meta-information-from-html.svg?branch=master)](https://travis-ci.org/joegesualdo/get-meta-information-from-html)
> Get `<meta>` tags information from HTML.

## Install
```
$ npm install --save @joegesualdo/get-meta-information-from-html 
```

## Usage
```javascript
import getMetaInformationFromHTML from '@joegesualdo/get-meta-information-from-html'

let html = `
  <head>
    <meta itemprop="description" content="This is a description">
    <meta name="title" content="This is a Title">
  </head>
`

getMetaInformationFromHTML(html)
.then(result => {
  console.log(result)
  //=>[
  //    {
  //      typeKey: 'itemprop',
  //      typeValue: 'description',
  //      value: 'This is a description' 
  //    },
  //    {
  //      typeKey: 'name',
  //      typeValue: 'Title',
  //      value: 'This is a title'
  //    }
  // ]
})
```
> NOTE: Only looks for <meta> tags in the child nodes of the html provided. (Ie. `<head><meta><head>`)

## Test
```
$ npm test
```
## API
### `getMetaInformationFromHTML(html)`
> Get all the information from <meta> tags within the html provided

| Name | Type | Description |
|------|------|-------------|
| html | `String` | The HTML you want to evaluate the <meta> tags from|

Returns: `Object`, containing these keys: `typeKey`, `typeValue`, and `value`

```javascript
import getMetaInformationFromHTML from '@joegesualdo/get-meta-information-from-html';

let html = `
  <head>
    <meta itemprop="description" content="This is a description">
    <meta name="title" content="This is a Title">
  </head>
`
getMetaInformationFromHTML(html)
.then(result => {
  console.log(result)
  //=>[
  //    {
  //      typeKey: 'itemprop',
  //      typeValue: 'description',
  //      value: 'This is a description' 
  //    },
  //    {
  //      typeKey: 'name',
  //      typeValue: 'Title',
  //      value: 'This is a title'
  //    }
  // ]
})
```
## Build
```
$ npm run build
```

## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/get-youtube-subtitle-url-node
Description: Get the url for a youtube video's subtitles.
Author: Joe Gesualdo
Latest version: 0.1.0

## get-youtube-subtitle-url [![Build Status](https://travis-ci.org/joegesualdo/get-youtube-subtitle-url-node.svg?branch=master)](https://travis-ci.org/joegesualdo/get-youtube-subtitle-url-node)
> Get the url for a youtube video's subtitles.

## Install
```
$ npm install --save @joegesualdo/get-youtube-subtitle-url-node
```

## Usage
```javascript
import getYoutubeSubtitleUrl from '@joegesualdo/get-youtube-subtitle-url-node';

const videoId ='7W-d2gtis7k'
getYoutubeSubtitleUrl('TImPW-khOww')
.then((result) => {
  console.log(result)
  // {
  //   automaticallyGenerated: false,
  //   url: 'https://www.youtube.com/api/timedtext?lang=en&fmt=vtt&name=&v=TImPW-khOww'
  // }
})
.catch(err => {
  // Executed if subtitles are not available for this video.
})
```

## API
### `getYoutubeSubtitleUrl(videoId, opts)`
> Fetches the url for the subtitles 

| Name | Type | Description |
|------|------|-------------|
| videoId | `String` | The id of the youtube video |

Returns: `Object`, with the url and whether or not the subtitles were automatically generated.

##### Options
| Name | Type | Default | Options | Description |
|------|------|-------------|----------|-------|
| type | `String` | `either` | `auto`, `nonauto`, `either` |The type of subtitles|


```javascript
import getYoutubeSubtitleUrl from '@joegesualdo/get-youtube-subtitle-url-node';

const videoId ='TImPW-khOww'
getYoutubeSubtitleUrl('TImPW-khOww', {type: 'nonauto'})
.then((result) => {
  console.log(result)
  // {
  //   automaticallyGenerated: false,
  //   url: 'https://www.youtube.com/api/timedtext?lang=en&fmt=vtt&name=&v=TImPW-khOww'
  // }
})
.catch(err => {
  // Executed if subtitles are not available for this video.
})
```
## Test
```
$ npm test
```
## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/get-youtube-subtitles-node
Description: Get the subtitles of a youtube video.
Author: Joe Gesualdo
Latest version: 0.1.0

## @joegesualdo/get-youtube-subtitles-node [![Build Status](https://travis-ci.org/joegesualdo/get-youtube-subtitles-node.svg?branch=master)](https://travis-ci.org/joegesualdo/get-youtube-subtitles-node)
> Get the subtitles of a youtube video.

## Install
```
$ npm install --save @joegesualdo/get-youtube-subtitles-node 
```

## Usage
```javascript
var getYoutubeSubtitles = require('@joegesualdo/get-youtube-subtitles-node');

let videoId = 'q_q61B-DyPk'

getYoutubeSubtitles(videoId)
.then(subtitles => {
  console.log(subtitles)
})
.catch(err => {
  console.log(err)
})
```

## Test
```
$ npm test
```
## API
### `getYoutubeSubtitles(youtubeVideoId, options)`
> Returns a promise that passes the resulting subtitles json.

| Name | Type | Description |
|------|------|-------------|
| youtubeVideoId | `Number` | The id of the video you want to get the subtitles for |

### Options
| Name | Type | Default | Options |Description |
|------|------|-------------|-----|------|
| type | `String ` | `either` | `auto`, `nonauto`, `either` | The id of the video you want to get the subtitles for |

Returns: `Promise`, that passes the resulting subtitles.

```javascript
var getYoutubeSubtitles = require('@joegesualdo/get-youtube-subtitles-node');

let videoId = 'q_q61B-DyPk'

getYoutubeSubtitles(videoId, {type: 'nonauto'})
.then(subtitles => {
  console.log(subtitles)
})
.catch(err => {
  console.log(err)
})
```

## Build
```
$ npm run build
```

## Related
- [vtt-to-json](https://github.com/joegesualdo/vtt-to-json) - Convert vtt to json.
- [get-youtube-subtitle-url-node](https://github.com/joegesualdo/get-youtube-subtitle-url-node) - Get the url for a youtube video's subtitles.

## License
MIT © [Joe Gesualdo]()
npm package: @joegesualdo/get-youtube-video-thumbnail-url-js
Description: Get the thumbnail image for a youtube video.
Author: Joe Gesualdo
Latest version: 0.0.1

## @joegesualdo/get-youtube-video-thumbnail-url-js [![Build Status](https://travis-ci.org/joegesualdo/get-youtube-video-thumbnail-url-js.svg?branch=master)](https://travis-ci.org/joegesualdo/get-youtube-video-thumbnail-url-js)
> Get the thumbnail image for a youtube video.

## Install
```
$ npm install --save @joegesualdo/get-youtube-video-thumbnail-url-js
```

## Usage
```javascript
import getThumbnailUrl from '@joegesualdo/get-youtube-video-thumbnail-url-js';

getThumbnailUrl('wHkK6mbFUTk', 'xlarge');
//=> https://i.ytimg.com/vi/wHkK6mbFUTk/maxresdefault.jpg
```

## API
### `getYoutubeVideoThumbnailUrl(videoId, [size])`
> Get the image url of the thumbnail

| Name | Type | Description |
|------|------|-------------|
| videoId | `String` | The id of the youtube video|
| size | `String` | The image size you want. The options are `small`, `medium`, `large`, and `xlarge`|

Returns: `String`, the url of the thumbnail

```javascript
import getThumbnailUrl from '@joegesualdo/get-youtube-video-thumbnail-url-js';

getThumbnailUrl('wHkK6mbFUTk', 'xlarge');
//=> https://i.ytimg.com/vi/wHkK6mbFUTk/maxresdefault.jpg
```
## Test
```
$ npm test
```
## Build
```
$ npm run build
```
## License
MIT © [Joe Gesualdo]()