{"_id":"@types/tr46","_rev":"3751794","name":"@types/tr46","description":"TypeScript definitions for tr46","dist-tags":{"latest":"5.0.1","ts4.0":"3.0.0","ts4.1":"3.0.0","ts4.2":"3.0.0","ts4.3":"3.0.1","ts4.4":"3.0.1","ts4.5":"3.0.3","ts4.6":"5.0.0","ts4.7":"5.0.0","ts4.8":"5.0.0","ts4.9":"5.0.0","ts5.0":"5.0.1","ts5.1":"5.0.1","ts5.2":"5.0.1","ts5.3":"5.0.1","ts5.4":"5.0.1","ts5.5":"5.0.1","ts5.6":"5.0.1","ts5.7":"5.0.1","ts5.8":"5.0.1","ts5.9":"5.0.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-03-04T06:14:10.000Z","created":"2022-08-12T20:02:11.672Z","5.0.1":"2025-01-29T02:01:25.563Z","5.0.0":"2024-02-23T23:35:33.852Z","3.0.3":"2023-11-07T18:05:15.049Z","3.0.2":"2023-10-18T16:39:38.133Z","3.0.1":"2023-09-12T12:52:21.779Z","3.0.0":"2022-08-12T20:02:11.672Z"},"users":{},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/tr46"},"versions":{"5.0.1":{"name":"@types/tr46","version":"5.0.1","license":"MIT","_id":"@types/tr46@5.0.1","maintainers":[{"name":"types","email":""}],"contributors":[{"url":"https://github.com/BendingBender","name":"BendingBender","githubUsername":"BendingBender"}],"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","dist":{"shasum":"ee18db2c280fd38479ac8675e82002eb3442a90c","size":2001,"noattachment":false,"key":"/@types/tr46/-/@types/tr46-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/tr46/download/@types/tr46-5.0.1.tgz"},"main":"","types":"index.d.ts","scripts":{},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"repository":{"url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","type":"git","directory":"types/tr46"},"description":"TypeScript definitions for tr46","directories":{},"dependencies":{},"_hasShrinkwrap":false,"peerDependencies":{},"typeScriptVersion":"5.0","_npmOperationalInternal":{"tmp":"tmp/tr46_5.0.1_1738116085281_0.476577985180054","host":"s3://npm-registry-packages-npm-production"},"typesPublisherContentHash":"85f35d4b5980ef2e679e7ae4de77ac9f61a1036484cd6fa9c56429d7ff483025","_cnpmcore_publish_time":"2025-01-29T02:01:25.563Z","publish_time":1738116085563,"_source_registry_name":"default","_cnpm_publish_time":1738116085563},"5.0.0":{"name":"@types/tr46","version":"5.0.0","description":"TypeScript definitions for tr46","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","license":"MIT","contributors":[{"name":"BendingBender","githubUsername":"BendingBender","url":"https://github.com/BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/tr46"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"5b592260b9c90e2450075bac03b3d383a4266bd3b5ad47cd08bea415a77fdad7","typeScriptVersion":"4.6","_id":"@types/tr46@5.0.0","dist":{"shasum":"01083aaed593354d69aef1d2dc44ad10b5102d63","size":1966,"noattachment":false,"key":"/@types/tr46/-/@types/tr46-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/tr46/download/@types/tr46-5.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/tr46_5.0.0_1708731333720_0.7864960492755981"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-23T23:35:33.852Z","publish_time":1708731333852,"_source_registry_name":"default","_cnpm_publish_time":1708731333852},"3.0.3":{"name":"@types/tr46","version":"3.0.3","description":"TypeScript definitions for tr46","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","license":"MIT","contributors":[{"name":"BendingBender","githubUsername":"BendingBender","url":"https://github.com/BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/tr46"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"7cec7f4e2a4579c6f7f53180f4d0c565049355016648bf822fde2005d43a283f","typeScriptVersion":"4.5","_id":"@types/tr46@3.0.3","dist":{"shasum":"3d0345f5e2534993f493a0dac87aa476caa994b9","size":1992,"noattachment":false,"key":"/@types/tr46/-/@types/tr46-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/tr46/download/@types/tr46-3.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/tr46_3.0.3_1699380314873_0.6847609961549748"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T18:05:15.049Z","publish_time":1699380315049,"_source_registry_name":"default","_cnpm_publish_time":1699380315049},"3.0.2":{"name":"@types/tr46","version":"3.0.2","description":"TypeScript definitions for tr46","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","license":"MIT","contributors":[{"name":"BendingBender","githubUsername":"BendingBender","url":"https://github.com/BendingBender"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/tr46"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"11eedddcd266d1e3193d10b09add990f3604e61c05753de6bc01d31781d7cd28","typeScriptVersion":"4.5","_id":"@types/tr46@3.0.2","dist":{"shasum":"26374744ac28ed2c89610ef5d1ad6e30422c2c2a","size":1995,"noattachment":false,"key":"/@types/tr46/-/@types/tr46-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/tr46/download/@types/tr46-3.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/tr46_3.0.2_1697647177874_0.5412312643745698"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T16:39:38.133Z","publish_time":1697647178133,"_source_registry_name":"default","_cnpm_publish_time":1697647178133},"3.0.1":{"name":"@types/tr46","version":"3.0.1","description":"TypeScript definitions for tr46","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","license":"MIT","contributors":[{"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/tr46"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"64af2ac875fc14f0ac9538537e5007f8b6531591d119122fe82a80dcbde30694","typeScriptVersion":"4.3","_id":"@types/tr46@3.0.1","dist":{"shasum":"61ad7828107de3630d30c4a1a257576a175f0124","size":2032,"noattachment":false,"key":"/@types/tr46/-/@types/tr46-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/tr46/download/@types/tr46-3.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/tr46_3.0.1_1694523141562_0.2871760574753419"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-12T12:52:21.779Z","publish_time":1694523141779,"_source_registry_name":"default","_cnpm_publish_time":1694523141779},"3.0.0":{"name":"@types/tr46","version":"3.0.0","description":"TypeScript definitions for tr46","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","license":"MIT","contributors":[{"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/tr46"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"b9e1eb0acf661f9da1ffcaecf9a40dd6c19e639ef04fe190e67a2a2e763f896f","typeScriptVersion":"4.0","_id":"@types/tr46@3.0.0","dist":{"shasum":"7e89fd6d457034bff85603781bafbcdd45cc69b2","size":2031,"noattachment":false,"key":"/@types/tr46/-/@types/tr46-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/tr46/download/@types/tr46-3.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/tr46_3.0.0_1660334531530_0.9021993149141179"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-12T20:02:16.857Z","publish_time":1660334531672,"_cnpm_publish_time":1660334531672}},"readme":"# Installation\r\n> `npm install --save @types/tr46`\r\n\r\n# Summary\r\nThis package contains type definitions for tr46 (https://github.com/jsdom/tr46).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46/index.d.ts)\r\n````ts\r\n/**\n * Converts a string of Unicode symbols to a case-folded Punycode string of ASCII symbols.\n */\nexport function toASCII(\n    domainName: string,\n    options?: ToASCIIOptions,\n): string | null;\n\n/**\n * Converts a case-folded Punycode string of ASCII symbols to a string of Unicode symbols.\n */\nexport function toUnicode(\n    domainName: string,\n    options?: Options,\n): { domain: string; error: boolean };\n\nexport interface Options {\n    /**\n     * When set to `true`, any bi-directional text within the input will be checked for validation.\n     * @default false\n     */\n    checkBidi?: boolean | undefined;\n    /**\n     * When set to `true`, the positions of any hyphen characters within the input will be checked for validation.\n     * @default false\n     */\n    checkHyphens?: boolean | undefined;\n    /**\n     * When set to `true`, any word joiner characters within the input will be checked for validation.\n     * @default false\n     */\n    checkJoiners?: boolean | undefined;\n    /**\n     * When set to `true`, invalid Punycode strings within the input will be allowed.\n     * @default false\n     */\n    ignoreInvalidPunycode?: boolean | undefined;\n    /**\n     * When set to `true`, uses transitional (compatibility) processing of the deviation characters.\n     * @default false\n     */\n    transitionalProcessing?: boolean | undefined;\n    /**\n     * When set to `true`, input will be validated according to [STD3 Rules](http://unicode.org/reports/tr46/#STD3_Rules).\n     * @default false\n     */\n    useSTD3ASCIIRules?: boolean | undefined;\n}\n\nexport interface ToASCIIOptions extends Options {\n    /**\n     * When set to `true`, the length of each DNS label within the input will be checked for validation.\n     * @default false\n     */\n    verifyDNSLength?: boolean | undefined;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Wed, 29 Jan 2025 02:01:16 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [BendingBender](https://github.com/BendingBender).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tr46","license":"MIT"}