Wondering what’s next for npm?Check out our public roadmap! »

    youtube-suggest

    1.1.2 • Public • Published

    youtube-suggest

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

    Install - Usage - License: Apache-2.0

    npm ci status 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

    Install

    npm i youtube-suggest

    DownloadsWeekly Downloads

    439

    Version

    1.1.2

    License

    Apache-2.0

    Unpacked Size

    8.99 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar