{"_id":"@dsmith3210/youtube-dl-exec","_rev":"1-ed55c60c444efb0666c3ae1fc0eff06a","name":"@dsmith3210/youtube-dl-exec","dist-tags":{"latest":"1.2.5"},"versions":{"1.2.5":{"name":"@dsmith3210/youtube-dl-exec","description":"A simple Node.js wrapper for youtube-dl","homepage":"https://nicedoc.io/microlinkhq/youtube-dl-exec","version":"1.2.5","main":"src/index.js","author":{"name":"microlink.io","email":"hello@microlink.io","url":"https://microlink.io"},"contributors":[{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com"},{"name":"Skick","email":"skick1234@gmail.com"},{"name":"Felix Kaiser","email":"felixkaiser2000@protonmail.com"},{"name":"Philipp Fruck","email":"dev@p-fruck.de"}],"repository":{"type":"git","url":"git+https://github.com/microlinkhq/youtube-dl-exec.git"},"bugs":{"url":"https://github.com/microlinkhq/youtube-dl-exec/issues"},"keywords":["binary","nodejs","youtube-dl","youtube-dl-wrapper","youtube-downloader"],"dependencies":{"bin-version-check-cli":"~3.0.0","dargs":"~7.0.0","execa":"~5.1.0","get-stream":"~6.0.1","got":"~11.8.2","is-unix":"~1.0.0","mkdirp":"~1.0.4","p-event":"~4.2.0","p-reflect":"~2.1.0"},"devDependencies":{"@commitlint/cli":"latest","@commitlint/config-conventional":"latest","ava":"latest","conventional-github-releaser":"latest","coveralls":"latest","finepack":"latest","git-authors-cli":"latest","git-dirty":"latest","lint-staged":"latest","npm-check-updates":"latest","nyc":"latest","prettier-standard":"latest","simple-git-hooks":"latest","standard":"latest","standard-markdown":"latest","standard-version":"latest"},"engines":{"node":">= 12"},"scripts":{"check":"bin-version-check python '>=2'","clean":"rm -rf node_modules","contributors":"(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true","coverage":"nyc report --reporter=text-lcov | coveralls","lint":"standard-markdown README.md && standard","postinstall":"node scripts/postinstall.js","postrelease":"npm run release:tags && npm run release:github && npm publish","prerelease":"git-dirty && npm run update:check && npm test && npm run contributors","pretest":"npm run lint","release":"git-authors-cli finepack && git add package.json && standard-version -a","release:github":"conventional-github-releaser -p angular","release:tags":"git push --follow-tags origin master","test":"nyc ava","update":"ncu -u","update:check":"ncu -- --error-level 2"},"license":"MIT","commitlint":{"extends":["@commitlint/config-conventional"]},"lint-staged":{"package.json":["finepack"],"*.js":["prettier-standard"],"*.md":["standard-markdown"]},"simple-git-hooks":{"commit-msg":"npx commitlint --edit","pre-commit":"npx lint-staged"},"gitHead":"6446e7b4f5bf43dcca32cd7fc5beb57aee18da7e","_id":"@dsmith3210/youtube-dl-exec@1.2.5","_nodeVersion":"11.10.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-v7Ggm04OzsO2/WSSxjG3NzP5yta+om9SSK83hlKgqEKqoogohBtTQkJIh+7fkgdy+9bP0s+M6S8WsUCr2e4yxg==","shasum":"56699fb38f655efcf5ba07f120f7d3e2f1ad8e0e","tarball":"https://registry.npmjs.org/@dsmith3210/youtube-dl-exec/-/youtube-dl-exec-1.2.5.tgz","fileCount":8,"unpackedSize":15369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg41DCCRA9TVsSAnZWagAA1BMP/j+fbIT3ldiTP3w6KgZf\nNN9LV+qoZrs7Kuij1XVTfbTA2nlx7F1DguzNhhcFxQgcPZ8A4OjUBX0A58ka\nixSjSrlSIppc3lc8hH4VW8+ruCjTjC+OKNj+NoZtUoD73TtR8u/EV9OpC7/y\nyu+tBy7BQPiCIFtdJAvGryQjwVPClWE3GyazLCG38l9ata1xiKr10RZJYGYU\nVskQRJyh7nUeU91k8mGfbgY5SIYS7sF63boxRljkrxFbmi/J+j5xmFr870jP\nmTh7GjkyPc6zZeYryf3wK7WnnE/Clk3KjBtE0ynHUlkxYMtcHccRO+8v9H67\nehgKO8svNcCR0g1uJSJElGbF5K1AYN3lVQpi9vb4UEtyj7y1TPmWz0xOitrM\ncjVUJ74UchUvMPjKUEQEUF3WzfE3MBN7GFYktSjcT555/VkR4X+xDx8X2bYY\nCXdvGPF0TLTK27ytpLQCJ9S2Vbs7GSODSMRpXBpJgSetpRVDdoDJSkcMGMQD\noIIDmgr/5N+Zq3Ki4o3KlBQY/WBInAijIcq0WQbBOFi0yzMkpTHmKxNMuhQQ\nqEt2L8IYilRgA14+o6tg++yJ9CLBitl422c6h8jx5A4HLc23pilaSiB/mhyM\ne8ZXOS8IpNaQ6Ewiku/cxyWVVUkVP/c+TxKDvLTG1dJMHRo33BjsUx9rBeld\nYL6S\r\n=65Mt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCed6Q/uZwOb3Aq/d4up85EZ568sfOyxjghthbb8E5uUQIgVh4tadhkP+DKof1rrF0u+4TWbFDxXyQupZRaAeI4NMI="}]},"_npmUser":{"name":"dsmith3210","email":"dsmith@bsch.ca"},"directories":{},"maintainers":[{"name":"dsmith3210","email":"dsmith@bsch.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/youtube-dl-exec_1.2.5_1625510082135_0.8292209252766158"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-05T18:34:42.087Z","1.2.5":"2021-07-05T18:34:42.240Z","modified":"2022-04-05T05:45:02.366Z"},"maintainers":[{"name":"dsmith3210","email":"dsmith@bsch.ca"}],"description":"A simple Node.js wrapper for youtube-dl","homepage":"https://nicedoc.io/microlinkhq/youtube-dl-exec","keywords":["binary","nodejs","youtube-dl","youtube-dl-wrapper","youtube-downloader"],"repository":{"type":"git","url":"git+https://github.com/microlinkhq/youtube-dl-exec.git"},"contributors":[{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com"},{"name":"Skick","email":"skick1234@gmail.com"},{"name":"Felix Kaiser","email":"felixkaiser2000@protonmail.com"},{"name":"Philipp Fruck","email":"dev@p-fruck.de"}],"author":{"name":"microlink.io","email":"hello@microlink.io","url":"https://microlink.io"},"bugs":{"url":"https://github.com/microlinkhq/youtube-dl-exec/issues"},"license":"MIT","readme":"<div align=\"center\">\n  <img src=\"https://cdn.microlink.io/logo/banner.png\"\">\n</div>\n\n> A simple Node.js wrapper for [youtube-dl](https://github.com/ytdl-org/youtube-dl).\n\n## Why\n\n- Auto install the latest `youtube-dl` version available.\n- Executes any command in a efficient way.\n- Promise & Stream interface support.\n\n## Install\n\n```bash\n$ npm install youtube-dl-exec --save\n```\n\n## Usage\n\n```js\nconst youtubedl = require('youtube-dl-exec')\n\nyoutubedl('https://example.com', {\n  dumpSingleJson: true,\n  noWarnings: true,\n  noCallHome: true,\n  noCheckCertificate: true,\n  preferFreeFormats: true,\n  youtubeSkipDashManifest: true,\n  referer: 'https://example.com'\n})\n  .then(output => console.log(output))\n```\n\nIt's equivalent to:\n\n```bash\n$ youtube-dl https://example.com --dump-json --no-warnings --no-call-home --no-check-certificate --prefer-free-formats --youtube-skip-dash-manifest --referer=https://example.com\n```\n\n## API\n\n### youtubedl(url, [flags], [options])\n\n#### url\n\n*Required*<br>\nType: `string`\n\nThe URL to target.\n\n#### flags\n\nType: `object`\n\nAny flag supported by `youtube-dl`.\n\n#### options\n\nAny option provided here will passed to [execa#options](https://github.com/sindresorhus/execa#options).\n\n### youtubedl.raw(url, [flags], [options])\n\nIt's the same than the main method but it will return the raw subprocess object:\n\n```js\nconst youtubedl = require('youtube-dl-exec')\nconst fs = require('fs')\n\nconst subprocess = youtubedl.raw('https://example.com', { dumpSingleJson: true })\n\nconsole.log(`Running subprocess as ${subprocess.pid}`)\n\nsubprocess.stdout.pipe(fs.createWriteStream('stdout.txt'))\nsubprocess.stderr.pipe(fs.createWriteStream('stderr.txt'))\n\nsetTimeout(subprocess.cancel, 30000)\n```\n\n## Environment variables\n\nThe environment variables are taken into account when you perform a `npm install` in a project that contains `youtube-dl-exec` dependency.\n\nThey setup the download configuration for getting the `youtube-dl` binary file.\n\nThese variables can be\n\n### YOUTUBE_DL_HOST\n\nIt determines the remote URL for getting the `youtube-dl` binary file.\n\nThe default URL is [ytdl-org/youtube-dl latest release](https://github.com/ytdl-org/youtube-dl/releases/latest).\n\n### YOUTUBE_DL_DIR\n\nIt determines the folder where to put the binary file.\n\nThe default folder is `bin`.\n\n### YOUTUBE_DL_FILENAME\n\nIt determines the binary filename.\n\nThe default binary file could be `youtube-dl` or `youtube-dl.exe`, depending of the [`YOUTUBE_DL_PLATFORM`](#youtube_dl_platform) value.\n\n### YOUTUBE_DL_PLATFORM\n\nIt determines the architecture of the machine that will use the `youtube-dl` binary.\n\nThe default value will computed from `process.platform`, being `'unix'` or `'win32'`.\n\n## License\n\n**youtube-dl-exec** © [microlink.io](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/youtube-dl-exec/blob/master/LICENSE.md) License.<br>\nAuthored and maintained by [Kiko Beats](https://kikobeats.com) with help from [contributors](https://github.com/microlinkhq/youtube-dl-exec/contributors).\n\n> [microlink.io](https://microlink.io) · GitHub [microlink.io](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)\n","readmeFilename":"README.md"}