{"_id":"@types/download","_rev":"3016401","name":"@types/download","description":"TypeScript definitions for download","dist-tags":{"latest":"8.0.3","ts2.2":"6.2.1","ts2.3":"6.2.4","ts2.4":"6.2.4","ts2.5":"6.2.4","ts2.6":"6.2.4","ts2.7":"6.2.4","ts2.8":"6.2.4","ts2.9":"6.2.4","ts3.0":"6.2.4","ts3.1":"6.2.4","ts3.2":"6.2.4","ts3.3":"6.2.4","ts3.4":"6.2.4","ts3.5":"6.2.4","ts3.6":"8.0.1","ts3.7":"8.0.1","ts3.8":"8.0.1","ts3.9":"8.0.1","ts4.0":"8.0.1","ts4.1":"8.0.1","ts4.2":"8.0.2","ts4.3":"8.0.2","ts4.4":"8.0.2","ts4.5":"8.0.3","ts4.6":"8.0.3","ts4.7":"8.0.3","ts4.8":"8.0.3","ts4.9":"8.0.3","ts5.0":"8.0.3","ts5.1":"8.0.3","ts5.2":"8.0.3","ts5.3":"8.0.3"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-10-17T06:04:18.000Z","created":"2017-11-21T20:22:36.835Z","8.0.3":"2023-10-10T18:11:42.159Z","8.0.2":"2022-12-15T17:03:08.249Z","8.0.1":"2021-07-06T20:47:59.445Z","8.0.0":"2021-06-04T18:31:55.310Z","6.2.4":"2018-12-31T16:12:37.346Z","6.2.3":"2018-10-30T19:53:01.998Z","6.2.2":"2018-03-22T17:53:13.736Z","6.2.1":"2018-01-03T20:05:06.386Z","6.2.0":"2017-11-21T20:22:36.835Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/download"},"versions":{"8.0.3":{"name":"@types/download","version":"8.0.3","description":"TypeScript definitions for download","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"},{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/download"},"scripts":{},"dependencies":{"@types/decompress":"*","@types/got":"^9","@types/node":"*"},"typesPublisherContentHash":"03ba20ef9ade62f80b96030f58ca0111008fd007aabe3562a5acd9f8fb2e9cb6","typeScriptVersion":"4.5","_id":"@types/download@8.0.3","dist":{"shasum":"63011c1361b2083fbe4a3cdb1c515b7ae0749593","size":2323,"noattachment":false,"key":"/@types/download/-/@types/download-8.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-8.0.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_8.0.3_1696961501830_0.9899157682319892"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-10T18:11:42.159Z","publish_time":1696961502159,"_source_registry_name":"default","_cnpm_publish_time":1696961502159},"8.0.2":{"name":"@types/download","version":"8.0.2","description":"TypeScript definitions for download","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"},{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/download"},"scripts":{},"dependencies":{"@types/decompress":"*","@types/got":"^9","@types/node":"*"},"typesPublisherContentHash":"a8be3abb0074fbec72479f89a394a4248d59b8dfbc08e1feedf36b1f8d22a1c8","typeScriptVersion":"4.2","_id":"@types/download@8.0.2","dist":{"shasum":"2ef0a8b19caec152b51a2efe2e99a6795dcf1ec2","size":2302,"noattachment":false,"key":"/@types/download/-/@types/download-8.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-8.0.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_8.0.2_1671123788094_0.6423173765809211"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-15T17:21:38.652Z","publish_time":1671123788249,"_cnpm_publish_time":1671123788249},"8.0.1":{"name":"@types/download","version":"8.0.1","description":"TypeScript definitions for download","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"},{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/download"},"scripts":{},"dependencies":{"@types/decompress":"*","@types/got":"^8","@types/node":"*"},"typesPublisherContentHash":"1a689d67921d960606255dc3f6f1e63797352e9f348538643b519fed843f384d","typeScriptVersion":"3.6","_id":"@types/download@8.0.1","dist":{"shasum":"9653e0deb52f1b47f659e8e8be1651c8515bc0a7","size":2265,"noattachment":false,"key":"/@types/download/-/@types/download-8.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-8.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_8.0.1_1625604479304_0.7455160487271462"},"_hasShrinkwrap":false,"publish_time":1625604479445,"_cnpm_publish_time":1625604479445,"_cnpmcore_publish_time":"2021-12-16T16:50:35.470Z"},"8.0.0":{"name":"@types/download","version":"8.0.0","description":"TypeScript definitions for download","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"},{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/download"},"scripts":{},"dependencies":{"@types/decompress":"*","@types/got":"^8","@types/node":"*"},"typesPublisherContentHash":"84bd8fda5adbff9bd45be987e46349029f8c600d3827e70432ecff2ef2de9d90","typeScriptVersion":"3.6","_id":"@types/download@8.0.0","dist":{"shasum":"aa713d3587cdf03d90e3ddc1517ea32e3d22b23c","size":2260,"noattachment":false,"key":"/@types/download/-/@types/download-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-8.0.0.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_8.0.0_1622831515203_0.726070978905508"},"_hasShrinkwrap":false,"publish_time":1622831515310,"_cnpm_publish_time":1622831515310,"_cnpmcore_publish_time":"2021-12-16T16:50:35.713Z"},"6.2.4":{"name":"@types/download","version":"6.2.4","description":"TypeScript definitions for download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/decompress":"*","@types/got":"^8","@types/node":"*"},"typesPublisherContentHash":"25573576743ee4f41301427072830fd3df9f2f464295a9b4ef96885975a6277c","typeScriptVersion":"2.3","_id":"@types/download@6.2.4","dist":{"shasum":"d9fb74defe20d75f59a38a9b5b0eb5037d37161a","size":1860,"noattachment":false,"key":"/@types/download/-/@types/download-6.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-6.2.4.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_6.2.4_1546272757212_0.5948511882858474"},"_hasShrinkwrap":false,"publish_time":1546272757346,"_cnpm_publish_time":1546272757346,"_cnpmcore_publish_time":"2021-12-16T16:50:36.073Z"},"6.2.3":{"name":"@types/download","version":"6.2.3","description":"TypeScript definitions for download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"}],"main":"","types":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/got":"^8","@types/decompress":"*","@types/node":"*"},"typesPublisherContentHash":"bd18f4c6d518429f1d92eae3eb95b3758f150822bf296b7f4a6adeba03bb9ae9","typeScriptVersion":"2.3","_id":"@types/download@6.2.3","dist":{"shasum":"9bb00b4dbfd3530d562287b8d64f054c76704f7a","size":1818,"noattachment":false,"key":"/@types/download/-/@types/download-6.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-6.2.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_6.2.3_1540929181734_0.4582366653119192"},"_hasShrinkwrap":false,"publish_time":1540929181998,"_cnpm_publish_time":1540929181998,"_cnpmcore_publish_time":"2021-12-16T16:50:36.257Z"},"6.2.2":{"name":"@types/download","version":"6.2.2","description":"TypeScript definitions for download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/decompress":"*","@types/got":"*","@types/node":"*"},"typesPublisherContentHash":"da2abac0e452d76ac887ebb87133a2a5ec60c87c914393e458cd8133107d34ca","typeScriptVersion":"2.3","_id":"@types/download@6.2.2","dist":{"shasum":"11385a3fd6e1f3300362fb52db119420ecc0fb34","size":1819,"noattachment":false,"key":"/@types/download/-/@types/download-6.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-6.2.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download_6.2.2_1521741193596_0.0044758752139530955"},"_hasShrinkwrap":false,"publish_time":1521741193736,"_cnpm_publish_time":1521741193736,"_cnpmcore_publish_time":"2021-12-16T16:50:36.482Z"},"6.2.1":{"name":"@types/download","version":"6.2.1","description":"TypeScript definitions for download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"a502a5ddd9ceb2ee032e2700d507d675df80d6703ca1d4c29c12de4b24c7c46d","typeScriptVersion":"2.2","_id":"@types/download@6.2.1","dist":{"shasum":"56427bd11bebf8002e09abb7a5383dc870af7240","size":1846,"noattachment":false,"key":"/@types/download/-/@types/download-6.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-6.2.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-6.2.1.tgz_1515009906324_0.304608354344964"},"directories":{},"publish_time":1515009906386,"_hasShrinkwrap":false,"_cnpm_publish_time":1515009906386,"_cnpmcore_publish_time":"2021-12-16T16:50:36.699Z"},"6.2.0":{"name":"@types/download","version":"6.2.0","description":"TypeScript definitions for download","license":"MIT","contributors":[{"name":"Nico Jansen","url":"https://github.com/nicojs","githubUsername":"nicojs"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"53bb9cfc1fa34776715a226ea0f76a30844550b8f4362f46c2ebeee2345f65aa","typeScriptVersion":"2.2","_id":"@types/download@6.2.0","dist":{"shasum":"595665c7a861a47d8162c352ff1e587068f3d1dd","size":1836,"noattachment":false,"key":"/@types/download/-/@types/download-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/download/download/@types/download-6.2.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/download-6.2.0.tgz_1511295756771_0.26505677262321115"},"directories":{},"publish_time":1511295756835,"_hasShrinkwrap":false,"_cnpm_publish_time":1511295756835,"_cnpmcore_publish_time":"2021-12-16T16:50:36.903Z"}},"readme":"# Installation\r\n> `npm install --save @types/download`\r\n\r\n# Summary\r\nThis package contains type definitions for download (https://github.com/kevva/download).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download/index.d.ts)\r\n````ts\r\n// Type definitions for download 8.0\n// Project: https://github.com/kevva/download\n// Definitions by: Nico Jansen <https://github.com/nicojs>\n//                 BendingBender <https://github.com/BendingBender>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\nimport { DecompressOptions } from \"decompress\";\nimport { GotEmitter, GotOptions } from \"got\";\nimport { Duplex } from \"stream\";\n\ndeclare namespace download {\n    interface DownloadOptions extends DecompressOptions, GotOptions<string | null> {\n        /**\n         * If set to `true`, try extracting the file using\n         * [`decompress`](https://github.com/kevva/decompress).\n         *\n         * @default false\n         */\n        extract?: boolean | undefined;\n\n        /**\n         * Name of the saved file.\n         */\n        filename?: string | undefined;\n    }\n}\n\n/**\n * Download and extract files.\n *\n * @param url URL to download.\n * @param destination Path to where your file will be written.\n * @param options Same options as [`got`](https://github.com/sindresorhus/got#options)\n * and [`decompress`](https://github.com/kevva/decompress#options) in addition to the\n * ones from this package.\n *\n * @example\n * import fs from 'fs';\n * import download = require('download');\n *\n * (async () => {\n *     await download('http://unicorn.com/foo.jpg', 'dist');\n *\n *     fs.writeFileSync('dist/foo.jpg', await download('http://unicorn.com/foo.jpg'));\n *\n *     download('unicorn.com/foo.jpg').pipe(fs.createWriteStream('dist/foo.jpg'));\n *\n *     await Promise.all([\n *         'unicorn.com/foo.jpg',\n *         'cats.com/dancing.gif'\n *     ].map(url => download(url, 'dist')));\n * })();\n */\ndeclare function download(\n    url: string,\n    destination?: string,\n    options?: download.DownloadOptions,\n): Promise<Buffer> & GotEmitter & Duplex;\ndeclare function download(url: string, options?: download.DownloadOptions): Promise<Buffer> & GotEmitter & Duplex;\n\nexport = download;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 10 Oct 2023 18:07:32 GMT\r\n * Dependencies: [@types/decompress](https://npmjs.com/package/@types/decompress), [@types/got](https://npmjs.com/package/@types/got), [@types/node](https://npmjs.com/package/@types/node)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Nico Jansen](https://github.com/nicojs), and [BendingBender](https://github.com/BendingBender).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/download","license":"MIT"}