1.0.3 • Published 4 years ago

node-ytt v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

node-ytt

Simple module to get YouTube trending videos. No need of GoogleAPI key.

Usage

const ytt = require('node-ytt');

ytt((response) => {
    if(response instanceof Error)
        throw response
    console.log(response)
})

API

ytt(callback)

Fetches latest YouTube trending videos from US origin.

  • callback(result)
    • function
    • fires on request completion
    • result can be error or videos response

Related / Works well with

Install

npm install --save node-ytt

License

MIT