{"_id":"@types/default-gateway","_rev":"2802734","name":"@types/default-gateway","description":"TypeScript definitions for default-gateway","dist-tags":{"latest":"3.0.1","ts2.0":"3.0.0","ts2.1":"3.0.0","ts2.2":"3.0.0","ts2.3":"3.0.0","ts2.4":"3.0.0","ts2.5":"3.0.0","ts2.6":"3.0.0","ts2.7":"3.0.0","ts2.8":"3.0.1","ts2.9":"3.0.1","ts3.0":"3.0.1","ts3.1":"3.0.1","ts3.2":"3.0.1","ts3.3":"3.0.1","ts3.4":"3.0.1","ts3.5":"3.0.1","ts3.6":"3.0.1","ts3.7":"3.0.1","ts3.8":"3.0.1","ts3.9":"3.0.1","ts4.0":"3.0.1","ts4.1":"3.0.1","ts4.2":"3.0.1","ts4.3":"3.0.1","ts4.4":"3.0.1","ts4.5":"3.0.1","ts4.6":"3.0.1","ts4.7":"3.0.1","ts4.8":"3.0.1","ts4.9":"3.0.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:06.000Z","created":"2018-12-17T21:16:09.886Z","3.0.1":"2019-12-17T13:28:32.408Z","3.0.0":"2018-12-17T21:16:09.886Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/default-gateway"},"versions":{"3.0.1":{"name":"@types/default-gateway","version":"3.0.1","description":"TypeScript definitions for default-gateway","license":"MIT","contributors":[{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"},{"name":"Michele Della Mea","url":"https://github.com/ArcaneDiver","githubUsername":"ArcaneDiver"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/default-gateway"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"f7eb2f607f627f154d5b5194ec284403481ff17183039691d4a001cf644a6616","typeScriptVersion":"2.8","_id":"@types/default-gateway@3.0.1","dist":{"shasum":"24535b3b60c9ba0cbbce66ae713e3d156123f82f","size":1611,"noattachment":false,"key":"/@types/default-gateway/-/@types/default-gateway-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/default-gateway/download/@types/default-gateway-3.0.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/default-gateway_3.0.1_1576589312093_0.015034784745056706"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:34.752Z","publish_time":1576589312408,"_cnpm_publish_time":1576589312408},"3.0.0":{"name":"@types/default-gateway","version":"3.0.0","description":"TypeScript definitions for default-gateway","license":"MIT","contributors":[{"name":"BendingBender","url":"https://github.com/BendingBender","githubUsername":"BendingBender"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"5f84e0494e5175933b22b9878f10c281e815104b877fe6ced18b1adbb59bb2f8","typeScriptVersion":"2.0","_id":"@types/default-gateway@3.0.0","dist":{"shasum":"41ed635341afc6ada920cc39fc21449e71aea759","size":1543,"noattachment":false,"key":"/@types/default-gateway/-/@types/default-gateway-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/default-gateway/download/@types/default-gateway-3.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/default-gateway_3.0.0_1545081369615_0.39906685073444814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:32:34.660Z","publish_time":1545081369886,"_cnpm_publish_time":1545081369886}},"readme":"# Installation\r\n> `npm install --save @types/default-gateway`\r\n\r\n# Summary\r\nThis package contains type definitions for default-gateway (https://github.com/silverwind/default-gateway#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/default-gateway.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/default-gateway/index.d.ts)\r\n````ts\r\nexport function gateway4async(): Promise<Result<4>>;\nexport function gateway6async(): Promise<Result<6>>;\nexport function gateway4sync(): Result<4>;\nexport function gateway6sync(): Result<6>;\n\nexport interface Result<Family extends 4 | 6> {\n    /**\n     * The IP address of the default gateway.\n     */\n    gateway: string;\n\n    /**\n     * The IP address version of `gateway`.\n     */\n    version: Family;\n\n    /**\n     * Name of the interface.\n     * On Windows, this is the network adapter name.\n     * This can be `null` if it cannot be determined.\n     */\n    int: string | null;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 06 Nov 2023 22:41:05 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [BendingBender](https://github.com/BendingBender), [Michele Della Mea](https://github.com/ArcaneDiver), and [Junxiao Shi](https://github.com/yoursunny).\r\n","_attachments":{},"license":"MIT"}