{"_id":"@types/utf8","_rev":"4097989","name":"@types/utf8","description":"TypeScript definitions for utf8","dist-tags":{"latest":"3.0.3","ts2.0":"2.1.6","ts2.1":"2.1.6","ts2.2":"2.1.6","ts2.3":"2.1.6","ts2.4":"2.1.6","ts2.5":"2.1.6","ts2.6":"2.1.6","ts2.7":"2.1.6","ts2.8":"2.1.6","ts2.9":"2.1.6","ts3.0":"2.1.6","ts3.1":"2.1.6","ts3.2":"2.1.6","ts3.3":"2.1.6","ts3.4":"2.1.6","ts3.5":"3.0.0","ts3.6":"3.0.0","ts3.7":"3.0.0","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.3","ts4.6":"3.0.3","ts4.7":"3.0.3","ts4.8":"3.0.3","ts4.9":"3.0.3","ts5.0":"3.0.3","ts5.1":"3.0.3","ts5.2":"3.0.3","ts5.3":"3.0.3","ts5.4":"3.0.3","ts5.5":"3.0.3","ts5.6":"3.0.3","ts5.7":"3.0.3","ts5.8":"3.0.3","ts5.9":"3.0.3","ts6.0":"3.0.3"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2025-12-16T03:05:37.000Z","created":"2016-08-02T16:14:13.468Z","3.0.3":"2023-11-07T18:35:56.721Z","3.0.2":"2023-10-18T17:11:04.020Z","3.0.1":"2021-12-24T00:35:47.266Z","3.0.0":"2021-05-20T21:03:35.256Z","2.1.6":"2017-08-21T22:05:52.444Z","2.1.5":"2016-10-05T21:04:06.378Z","2.1.4":"2016-09-19T18:18:00.669Z","0.0.3":"2016-08-25T19:04:03.662Z","0.0.2":"2016-08-19T15:45:26.149Z","0.0.1":"2016-08-02T16:14:13.468Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/utf8"},"versions":{"3.0.3":{"name":"@types/utf8","version":"3.0.3","description":"TypeScript definitions for utf8","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8","license":"MIT","contributors":[{"name":"Piotr Błażejewicz","githubUsername":"peterblazejewicz","url":"https://github.com/peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/utf8"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"d2edb20486408e14c45261e6bef6ab8eea0ccd631ddc3a5b7ebe6792d0e24a36","typeScriptVersion":"4.5","_id":"@types/utf8@3.0.3","dist":{"shasum":"e153ada15157477a9e0d2bcc638c34284a1d82ea","size":1779,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-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/utf8_3.0.3_1699382156510_0.6282496949366378"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T18:35:56.721Z","publish_time":1699382156721,"_source_registry_name":"default","_cnpm_publish_time":1699382156721},"3.0.2":{"name":"@types/utf8","version":"3.0.2","description":"TypeScript definitions for utf8","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8","license":"MIT","contributors":[{"name":"Piotr Błażejewicz","githubUsername":"peterblazejewicz","url":"https://github.com/peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/utf8"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"15fa6bc9fad347c2721eeef8b8bdf8d9fda4010d95c6a65548e9ce9b39136204","typeScriptVersion":"4.5","_id":"@types/utf8@3.0.2","dist":{"shasum":"98139a5cff54b23f610f24f88fbd8e1eed839c09","size":1784,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-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/utf8_3.0.2_1697649063767_0.38406116198447227"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T17:11:04.020Z","publish_time":1697649064020,"_source_registry_name":"default","_cnpm_publish_time":1697649064020},"3.0.1":{"name":"@types/utf8","version":"3.0.1","description":"TypeScript definitions for utf8","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8","license":"MIT","contributors":[{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/utf8"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"fdcc954984285b3ce67e0c744d04ac2d26bc1d1d5efe178e9c5348057f5250a0","typeScriptVersion":"3.8","_id":"@types/utf8@3.0.1","dist":{"shasum":"bf081663d4fff05ee63b41f377a35f8b189f7e5b","size":1782,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-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/utf8_3.0.1_1640306147163_0.40021208621032556"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T05:50:24.821Z","publish_time":1640306147266,"_cnpm_publish_time":1640306147266},"3.0.0":{"name":"@types/utf8","version":"3.0.0","description":"TypeScript definitions for utf8","license":"MIT","contributors":[{"name":"Nick Zelei","url":"https://github.com/zelein","githubUsername":"zelein"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/utf8"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"1565bb381a0d1aca56b8fe8e2b4d7bd08b26593feaa30ef0da5a46931695af68","typeScriptVersion":"3.5","_id":"@types/utf8@3.0.0","dist":{"shasum":"8f4875063d2ea966c57a34a25c11333520e83980","size":1783,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-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/utf8_3.0.0_1621544615005_0.3300507448986887"},"_hasShrinkwrap":false,"publish_time":1621544615256,"_cnpm_publish_time":1621544615256,"_cnpmcore_publish_time":"2021-12-16T21:29:09.053Z"},"2.1.6":{"name":"@types/utf8","version":"2.1.6","description":"TypeScript definitions for utf8","license":"MIT","contributors":[{"name":"Nick Zelei","url":"https://github.com/zelein"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"1d0210ad98bbc9a9dddc2dc3c50806a5cb7aa0dee9e7704ac163d2de5577f020","typeScriptVersion":"2.0","_id":"@types/utf8@2.1.6","dist":{"shasum":"430cabb71a42d0a3613cce5621324fe4f5a25753","size":1697,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-2.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-2.1.6.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utf8-2.1.6.tgz_1503353152335_0.17524909414350986"},"directories":{},"publish_time":1503353152444,"_hasShrinkwrap":false,"_cnpm_publish_time":1503353152444,"_cnpmcore_publish_time":"2021-12-16T21:29:09.249Z"},"2.1.5":{"name":"@types/utf8","version":"2.1.5","description":"TypeScript definitions for utf8 v2.1.1","license":"MIT","author":"Nick Zelei <https://github.com/zelein/>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typings":"index.d.ts","typesPublisherContentHash":"decf742cc8655836571a55dd9d82787a61f9a5d5c6da410105d88f12db75e543","_id":"@types/utf8@2.1.5","dist":{"shasum":"f207e20e4e7147034f708c53bd7fb99db527ef56","size":1214,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-2.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-2.1.5.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/utf8-2.1.5.tgz_1475701446131_0.2645046622492373"},"directories":{},"publish_time":1475701446378,"_hasShrinkwrap":false,"_cnpm_publish_time":1475701446378,"_cnpmcore_publish_time":"2021-12-16T21:29:09.453Z"},"2.1.4":{"name":"@types/utf8","version":"2.1.4","description":"TypeScript definitions for utf8 v2.1.1","license":"MIT","author":"Nick Zelei <https://github.com/zelein/>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typings":"utf8.d.ts","typesPublisherContentHash":"e70b885c4bfd8a7da326cbbaa03a90d3c867b8216a9220e38b26aecbb0a6dd22","_id":"@types/utf8@2.1.4","dist":{"shasum":"be261ca440e005693da747c5201e740f501d70de","size":1202,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-2.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-2.1.4.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/utf8-2.1.4.tgz_1474309080444_0.028344474267214537"},"directories":{},"publish_time":1474309080669,"_hasShrinkwrap":false,"_cnpm_publish_time":1474309080669,"_cnpmcore_publish_time":"2021-12-16T21:29:09.652Z"},"0.0.3":{"name":"@types/utf8","version":"0.0.3","description":"TypeScript definitions for utf8 v2.1.1","license":"MIT","author":"Nick Zelei <https://github.com/zelein/>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typings":"utf8.d.ts","_id":"@types/utf8@0.0.3","dist":{"shasum":"dd376963da321789a91d01965f624e73a6feb52f","size":1191,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-0.0.3.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/utf8-0.0.3.tgz_1472151843436_0.213293363340199"},"directories":{},"publish_time":1472151843662,"_hasShrinkwrap":false,"_cnpm_publish_time":1472151843662,"_cnpmcore_publish_time":"2021-12-16T21:29:09.852Z"},"0.0.2":{"name":"@types/utf8","version":"0.0.2","description":"TypeScript definitions for utf8 v2.1.1","license":"MIT","author":"Nick Zelei <https://github.com/zelein/>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typings":"utf8.d.ts","_id":"@types/utf8@0.0.2","dist":{"shasum":"6a1a240a75d82788bbd2dc411c436d58efb66fc5","size":1192,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-0.0.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/utf8-0.0.2.tgz_1471621524946_0.024120387388393283"},"directories":{},"publish_time":1471621526149,"_hasShrinkwrap":false,"_cnpm_publish_time":1471621526149,"_cnpmcore_publish_time":"2021-12-16T21:29:10.353Z"},"0.0.1":{"name":"@types/utf8","version":"0.0.1","description":"TypeScript definitions for utf8 v2.1.1","license":"MIT","author":"Nick Zelei <https://github.com/zelein/>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typings":"utf8.d.ts","_id":"@types/utf8@0.0.1","dist":{"shasum":"407543fda1eec87ad35167907d1db97860486a3e","size":6656,"noattachment":false,"key":"/@types/utf8/-/@types/utf8-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/utf8/download/@types/utf8-0.0.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/utf8-0.0.1.tgz_1470154451450_0.38064641994424164"},"directories":{},"publish_time":1470154453468,"_hasShrinkwrap":false,"_cnpm_publish_time":1470154453468,"_cnpmcore_publish_time":"2021-12-16T21:29:10.608Z"}},"readme":"# Installation\r\n> `npm install --save @types/utf8`\r\n\r\n# Summary\r\nThis package contains type definitions for utf8 (https://github.com/mathiasbynens/utf8.js).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8/index.d.ts)\r\n````ts\r\nexport as namespace utf8;\n\n/**\n * A string representing the semantic version number.\n */\nexport const version: string;\n/**\n * Encodes any given JavaScript string (string) as UTF-8, and returns the UTF-8-encoded version of the string.\n * It throws an error if the input string contains a non-scalar value, i.e. a lone surrogate.\n * @param inputString\n */\nexport function encode(inputString: string): string;\n\n/**\n * Decodes any given UTF-8-encoded string (byteString) as UTF-8, and returns the UTF-8-decoded version of the string.\n * It throws an error when malformed UTF-8 is detected.\n * @param byteString\n */\nexport function decode(byteString: string): string;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 15:11:36 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8","license":"MIT"}