Package Exports
- ionic-youtube-search
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ionic-youtube-search) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ionic-youtube-search: Node.js
Fetch meta information about YouTube videos including stream urls
Table of contents:
Quickstart
Installing the library
ionic cordova plugin add cordova-plugin-advanced-http
npm install ionic-youtube-search --save
Using the library
import * as yt from 'ionic-youtube-search';
/**
* Given a search query, searching on youtube
* @param {string} search value (videoId).
*/
const videos = await yt.search('y5kIrbG2gRc');
console.log('Videos:');
console.log(videos);
const yt = require('ionic-youtube-search');
/**
* Given a search query, searching on youtube
* @param {string} search value.
*/
const video = await yt.info('My Search Query');
console.log('Videos:');
console.log(videos);
Supported Node.js Versions
Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js.
License
Apache Version 2.0
See LICENSE