{"_id":"@types/protocols","_rev":"3016624","name":"@types/protocols","description":"TypeScript definitions for protocols","dist-tags":{"latest":"2.0.1","ts2.0":"1.4.0","ts2.1":"1.4.0","ts2.2":"1.4.0","ts2.3":"1.4.0","ts2.4":"1.4.0","ts2.5":"1.4.0","ts2.6":"1.4.0","ts2.7":"1.4.0","ts2.8":"1.4.0","ts2.9":"1.4.0","ts3.0":"1.4.0","ts3.1":"1.4.0","ts3.2":"1.4.0","ts3.3":"1.4.0","ts3.4":"1.4.0","ts3.5":"1.4.0","ts3.6":"1.4.0","ts3.7":"1.4.0","ts3.8":"1.4.0","ts3.9":"1.4.0","ts4.0":"1.4.0","ts4.1":"2.0.0","ts4.2":"2.0.0","ts4.3":"2.0.0","ts4.4":"2.0.0","ts4.5":"2.0.1","ts4.6":"2.0.1","ts4.7":"2.0.1","ts4.8":"2.0.1","ts4.9":"2.0.1","ts5.0":"2.0.1","ts5.1":"2.0.1","ts5.2":"2.0.1","ts5.3":"2.0.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-10-17T06:04:32.000Z","created":"2019-08-21T19:02:03.609Z","2.0.1":"2023-09-24T07:16:03.822Z","2.0.0":"2022-10-29T18:04:45.245Z","1.4.0":"2019-08-21T19:02:03.609Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/protocols"},"versions":{"2.0.1":{"name":"@types/protocols","version":"2.0.1","description":"TypeScript definitions for protocols","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protocols","license":"MIT","contributors":[{"name":"Florian Imdahl","url":"https://github.com/ffflorian","githubUsername":"ffflorian"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/protocols"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"1aff9a04b0352f5ef5a20c3ade7cb119b73010d733d9a39144105b4f1faf4008","typeScriptVersion":"4.5","_id":"@types/protocols@2.0.1","dist":{"shasum":"cf44e69026c17f442fd973b566aa66a4d5443aa3","size":1820,"noattachment":false,"key":"/@types/protocols/-/@types/protocols-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/protocols/download/@types/protocols-2.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/protocols_2.0.1_1695539762662_0.3390600024494197"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-24T07:16:03.822Z","publish_time":1695539763822,"_source_registry_name":"default","_cnpm_publish_time":1695539763822},"2.0.0":{"name":"@types/protocols","version":"2.0.0","description":"TypeScript definitions for protocols","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protocols","license":"MIT","contributors":[{"name":"Florian Imdahl","url":"https://github.com/ffflorian","githubUsername":"ffflorian"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/protocols"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"99c66c027357239d91c15fda83ab17d831b9a838eeb61dd2929ff14cc556fc62","typeScriptVersion":"4.1","_id":"@types/protocols@2.0.0","dist":{"shasum":"9d4a808015ff2af2801aa9c465134bebbf99975b","size":1811,"noattachment":false,"key":"/@types/protocols/-/@types/protocols-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/protocols/download/@types/protocols-2.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/protocols_2.0.0_1667066685071_0.4672271373405106"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-29T18:05:05.964Z","publish_time":1667066685245,"_cnpm_publish_time":1667066685245},"1.4.0":{"name":"@types/protocols","version":"1.4.0","description":"TypeScript definitions for protocols","license":"MIT","contributors":[{"name":"Florian Keller","url":"https://github.com/ffflorian","githubUsername":"ffflorian"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/protocols"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"27978870ba8b0d5648208807775162e59db40cb2d937e3bf95e5bd12fe721f02","typeScriptVersion":"2.0","_id":"@types/protocols@1.4.0","dist":{"shasum":"30d9e376daffa214b05d01bb6fe4533b3a41b601","size":1637,"noattachment":false,"key":"/@types/protocols/-/@types/protocols-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/protocols/download/@types/protocols-1.4.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/protocols_1.4.0_1566414123478_0.5017310041990317"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:45:20.259Z","publish_time":1566414123609,"_cnpm_publish_time":1566414123609}},"readme":"# Installation\r\n> `npm install --save @types/protocols`\r\n\r\n# Summary\r\nThis package contains type definitions for protocols (https://github.com/IonicaBizau/protocols).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protocols.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protocols/index.d.ts)\r\n````ts\r\n// Type definitions for protocols 2.0\n// Project: https://github.com/IonicaBizau/protocols\n// Definitions by: Florian Imdahl <https://github.com/ffflorian>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\n\nimport { URL } from \"url\";\n\n/**\n * @param input The input url.\n * @param first If `true`, the first protocol will be returned. If number, it will represent the zero-based index of the protocols array.\n * @returns The array of protocols or the specified protocol.\n */\ndeclare function protocols(input: string | URL, first: true | number): string;\ndeclare function protocols(input: string | URL, first?: false): string[];\n\nexport = protocols;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Sun, 24 Sep 2023 06:37:28 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [Florian Imdahl](https://github.com/ffflorian).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protocols","license":"MIT"}