{"_rev":"3-27334e1ca155662be0d8e8f24f6545c9","time":{"created":"2022-09-10T14:03:35.209Z","2.10.3":"2022-09-07T09:35:53.509Z","modified":"2022-09-10T14:03:35.542Z","2.10.4":"2022-09-10T14:03:35.408Z"},"_id":"@blackamda/yt-search","name":"@blackamda/yt-search","dist-tags":{"latest":"2.10.4"},"versions":{"2.10.4":{"_from":"yt-search@2.10.3","_id":"@blackamda/yt-search@2.10.4","_inBundle":false,"_integrity":"sha512-msITxMhn+1f3RIlS2R0d5/275grX0nUgaD570Fap3gvPmwfvR9w31JG8B9++4Xtm6BLAzhdITK7kAWRInef8QQ==","_location":"/yt-search","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"yt-search@2.10.3","name":"yt-search","escapedName":"yt-search","rawSpec":"2.10.3","saveSpec":null,"fetchSpec":"2.10.3"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/yt-search/-/yt-search-2.10.3.tgz","_shasum":"c90db45e4a960f06ef1bfe7ba13457790ded661e","_spec":"yt-search@2.10.3","_where":"D:\\Achintha\\_QUEEN_AMDI\\Z-TestFolder","author":{"name":"talmobi","email":"talmo.christian@gmail.com"},"bin":{"yt-search":"bin/cli.js","yt-search-video":"bin/mpv_video.sh","yt-search-audio":"bin/mpv_audio.sh"},"bugs":{"url":"https://github.com/talmobi/yt-search/issues","email":"talmo.christian@gmail.com"},"dependencies":{"async.parallellimit":"~0.5.2","boolstring":"~1.0.2","cheerio":"^1.0.0-rc.10","dasu":"~0.4.3","human-time":"0.0.2","jsonpath-plus":"~5.0.2","minimist":"~1.2.5","node-fzf":"~0.5.1"},"deprecated":false,"description":"search youtube","devDependencies":{"@babel/core":"~7.11.4","@babel/preset-env":"~7.11.0","@talmobi/faucet":"0.0.3","babelify":"~10.0.0","browserify":"~17.0.0","cross-env":"~7.0.2","looks-same-plus":"0.0.2","spacestandard":"~0.3.0","tape":"~5.0.1","wooster":"~0.5.0"},"homepage":"https://github.com/talmobi/yt-search#readme","license":"MIT","main":"dist/yt-search.js","name":"@blackamda/yt-search","private":false,"repository":{"type":"git","url":"git+https://github.com/talmobi/yt-search.git"},"scripts":{"build":"npm run build:src","build:src":"browserify --node --no-bundle-external --standalone ytSearch -t [ babelify --presets [ @babel/preset-env ] ] src/index.js -o dist/yt-search.js 2>&1 | wooster","debug":"debug=1 node src/index.js --silent"},"version":"2.10.4","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Qh9OMx9Rwn6f1C+2EZWNVf/kWq+r7Vf3/C4trCuUgGkjoVoEsBfUjG0R9UJBl2A7OoubCDZfWEYeuAM/OLw8Fw==","shasum":"a26a38a5039e31c9f1346ae02964936e016d5be8","tarball":"https://registry.npmjs.org/@blackamda/yt-search/-/yt-search-2.10.4.tgz","fileCount":6,"unpackedSize":49460,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPW7R5fD2TVbiaB0SDbSQJcUQ2nnnjrkNQrShN+0i/wwIhAJFD6WTvjAA13DYbB4tJt0itGLPl9NqFduascudQU77V"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHJk3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqNg//RpdumlJF2filZgkbHjpRLV5GD4TUm4rigWgAmV2m7ckDi3bl\r\n9H0MC++atiez13dFLLpD5gOmOw/6qejl/cbzKyG9/YCRu4gLvZfy57L67mWa\r\nKwv71kyp2uQeNkXPyWDQY4p/GjUcjEKZ5xwA8F2sO0oSJXZhzGVchDl7ILLv\r\n2SiFJJELE6di5Lo1/5aUSYKTCbLws3OXVc/pagclmopO7cmWoZPF0Y/DeL5C\r\n3W7iZRGzlJ0r1a48ROZ7L2ivbrE1fDmHrVeZi1OBEzcUG1TaHJiEVyl5J9gj\r\nMb3d2nOSGz9yrIVYQtUw5c0vGuDO8Upu5eZNwysh1lM4PgUZ0/N3zlEC9fGX\r\ny4KIDQeggiiRfD2FPeTqFldt9w/+6v9rFPaPtWeysbzvPzHtlpFtUhP7DoLC\r\nDR5IMpXn5yiYLMuP+d8hwZmwQsNNtJz57lttzdSmX1R0GMtlwywPrzndtHRT\r\nqXVcLgzZj2VDAulEgTsVFMfZgyCaHSTFxSKvyN1CcHrahSHBnWr1xtaIel9n\r\ns6l6NzfFmK6v2qgGaxDdiir/ZEqYhkKhFlYDZercEDwEtOzp8G+BCbGwvTkJ\r\nanKhuqznP6mFWdfXDWZJA3SjbHRDsDrmkCRe5F836hvtAcrbfrg8FkFdxs59\r\neKSZh2GYxQRoObGSJjxIDvwl+hwIk2chxFc=\r\n=n12O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"blackamda","email":"sl.amdakolla@gmail.com"},"directories":{},"maintainers":[{"name":"blackamda","email":"sl.amdakolla@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yt-search_2.10.4_1662818615253_0.03705597156962481"},"_hasShrinkwrap":false}},"maintainers":[{"name":"blackamda","email":"sl.amdakolla@gmail.com"}],"description":"search youtube","homepage":"https://github.com/talmobi/yt-search#readme","repository":{"type":"git","url":"git+https://github.com/talmobi/yt-search.git"},"author":{"name":"talmobi","email":"talmo.christian@gmail.com"},"bugs":{"url":"https://github.com/talmobi/yt-search/issues","email":"talmo.christian@gmail.com"},"license":"MIT","readme":"[![npm](https://img.shields.io/npm/v/yt-search.svg?maxAge=3600)](https://www.npmjs.com/package/yt-search)\n[![npm](https://img.shields.io/npm/dm/yt-search.svg?maxAge=3600)](https://www.npmjs.com/package/yt-search)\n[![npm](https://img.shields.io/npm/l/yt-search.svg?maxAge=3600)](https://www.npmjs.com/package/yt-search)\n![mac](https://github.com/talmobi/yt-search/workflows/mac/badge.svg)\n![ubuntu](https://github.com/talmobi/yt-search/workflows/ubuntu/badge.svg)\n![windows](https://github.com/talmobi/yt-search/workflows/windows/badge.svg)\n\n#  yt-search\nsimple youtube search API and CLI\n\n![](https://thumbs.gfycat.com/ContentShockingCuttlefish-size_restricted.gif)\n\n## Installation\n```bash\nnpm install yt-search # local module usage\n```\n\n## Easy to use\n```javascript\nconst yts = require( 'yt-search' )\nconst r = await yts( 'superman theme' )\n\nconst videos = r.videos.slice( 0, 3 )\nvideos.forEach( function ( v ) {\n\tconst views = String( v.views ).padStart( 10, ' ' )\n\tconsole.log( `${ views } | ${ v.title } (${ v.timestamp }) | ${ v.author.name }` )\n} )\n```\n\n###### output\n```javascript\n  38878009 | Superman Theme (4:13) | Super Man\n   8861479 | Superman • Main Theme • John Williams (4:26) | HD Film Tributes\n   7802473 | Superman - Main Theme (BBC Proms) (4:46) | brassbone player\n```\n\n###### try it\nhttps://runkit.com/talmobi/runkit-npm-yt-search-basic\n\n#### single video\n```javascript\nconst video = await yts( { videoId: '_4Vt0UGwmgQ' } )\nconsole.log( video.title + ` (${ video.duration.timestamp })` )\n```\n###### output\n```javascript\nPhilip Glass. -  Koyaanisqatsi (original version) (3:29)\n```\n\n###### try it\nhttps://runkit.com/talmobi/runkit-npm-yt-search-video\n\n#### single playlist\n```javascript\nconst list = await yts( { listId: 'PL7k0JFoxwvTbKL8kjGI_CaV31QxCGf1vJ' } )\n\nconsole.log( 'playlist title: ' + list.title )\nlist.videos.forEach( function ( video ) {\n\tconsole.log( video.title )\n} )\n```\n###### output\n```javascript\nplaylist title: Superman Themes\nThe Max Fleischer Cartoon (From \"Superman\")\n[Deleted video]\nSuperman Theme\n[Private video]\nSuperman The Animated Series Full Theme\nSmallville theme song\nReprise / Fly Away\nSuperman Doomsday Soundtrack- Main Title\nHans Zimmer - Man of Steel Theme\nSupergirl CW Soundtrack - Superman Theme Extended\n```\n\n###### try it\nhttps://runkit.com/talmobi/runkit-npm-yt-search-playlist\n\n## CLI Usage (interactive)\n```bash\nyt-search superman theme\n```\n\nIf you have `mpv` installed, yt-search can directly play yt videos (or audio only)\n```bash\nyt-search-video Dank Memes Videos\nyt-search-audio Wagner\n```\n\nIf you don't have `mpv` installed, you can alternatively try installing `yt-play-cli`\n```bash\nnpm install -g yt-play-cli\n```\n\nsee: https://github.com/talmobi/yt-play\n\n\n## About\nSimple function to get youtube search results.\n\n## Why\nNot sure..\n\n## How\nUsing HTTP requests and parsing the results with [cheerio](https://github.com/cheeriojs/cheerio).\n\nCLI interactive mode with [node-fzf](https://github.com/talmobi/node-fzf)\n\n## Options\n```bash\nvar opts = { query: 'superman theme' }\nyts( opts, function ( err, r ) {\n\tif ( err ) throw err\n\tconsole.log( r.videos ) // video results\n\tconsole.log( r.playlists ) // playlist results\n\tconsole.log( r.channels ) // channel results\n\tconsole.log( r.live ) // live stream results\n} )\n\nvar opts = { videoId: 'e9vrfEoc8_g' }\nyts( opts, function ( err, video ) {\n\tif ( err ) throw err\n\tconsole.log( video ) // single video metadata\n} )\n\nvar opts = { listId: 'PL7k0JFoxwvTbKL8kjGI_CaV31QxCGf1vJ' }\nyts( opts, function ( err, playlist ) {\n\tif ( err ) throw err\n\tconsole.log( playlist ) // single playlist metadata\n\tconsole.log( playlist.videos ) // playlist videos\n} )\n```\n\n## Alternatives\n[ytsr](https://www.npmjs.com/package/ytsr)\n\n## Test\n```\nnpm test\n```\n","readmeFilename":"README.md"}