youtube-suggest
get youtube search suggestions for a query, in node.js and the browser
Last updated a year ago by goto-bus-stop .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install youtube-suggest 
SYNC missed versions from official npm registry.

youtube-suggest

get youtube search suggestions for a query, in node.js and the browser

Install - Usage - License: Apache-2.0

npm travis standard

Install

npm install youtube-suggest

Usage

var youtubeSuggest = require('youtube-suggest')
var assert = require('assert')

youtubeSuggest('query').then(function (results) {
  assert(Array.isArray(results))
  assert(typeof results[0] === 'string')
})

API

youtubeSuggest(query: string): Promise<string[]>

Do a network request for suggestions, returning the suggested completion strings as an array.

In Node.js it uses node-fetch. In the browser it uses JSONP.

License

Apache-2.0

Current Tags

  • 1.1.0                                ...           latest (a year ago)

2 Versions

  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |