{"_id":"@types/chardet","_rev":"2802632","name":"@types/chardet","description":"TypeScript definitions for chardet","dist-tags":{"latest":"0.8.1","ts2.0":"0.8.0","ts2.1":"0.8.0","ts2.2":"0.8.0","ts2.3":"0.8.0","ts2.4":"0.8.0","ts2.5":"0.8.0","ts2.6":"0.8.0","ts2.7":"0.8.0","ts2.8":"0.8.0","ts2.9":"0.8.0","ts3.0":"0.8.0","ts3.1":"0.8.0","ts3.2":"0.8.0","ts3.3":"0.8.0","ts3.4":"0.8.0","ts3.5":"0.8.0","ts3.6":"0.8.1","ts3.7":"0.8.1","ts3.8":"0.8.1","ts3.9":"0.8.1","ts4.0":"0.8.1","ts4.1":"0.8.1","ts4.2":"0.8.1","ts4.3":"0.8.1","ts4.4":"0.8.1","ts4.5":"0.8.1","ts4.6":"0.8.1","ts4.7":"0.8.1","ts4.8":"0.8.1","ts4.9":"0.8.1"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2022-09-01T09:22:00.000Z","created":"2018-04-26T22:28:05.981Z","0.8.1":"2021-07-06T18:24:59.734Z","0.8.0":"2019-10-30T17:15:38.392Z","0.5.0":"2018-04-26T22:28:05.981Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/chardet"},"versions":{"0.8.1":{"name":"@types/chardet","version":"0.8.1","description":"TypeScript definitions for chardet","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chardet","license":"MIT","contributors":[{"name":"Hauke Oldsen","url":"https://github.com/Gebatzens","githubUsername":"Gebatzens"},{"name":"Sam Hinshaw","url":"https://github.com/samhinshaw","githubUsername":"samhinshaw"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/chardet"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"0afd2a18bb22955946a94f5f5316dc5d7e598d45228b6eefee346105054d3f80","typeScriptVersion":"3.6","_id":"@types/chardet@0.8.1","dist":{"shasum":"2a6b730020df89776eb37ebb8c03354401252766","size":1927,"noattachment":false,"key":"/@types/chardet/-/@types/chardet-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/chardet/download/@types/chardet-0.8.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chardet_0.8.1_1625595899625_0.2066494049560179"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:36:20.957Z","publish_time":1625595899734,"_cnpm_publish_time":1625595899734},"0.8.0":{"name":"@types/chardet","version":"0.8.0","description":"TypeScript definitions for chardet","license":"MIT","contributors":[{"name":"Hauke Oldsen","url":"https://github.com/Gebatzens","githubUsername":"Gebatzens"},{"name":"Sam Hinshaw","url":"https://github.com/samhinshaw","githubUsername":"samhinshaw"}],"main":"","types":"index","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/chardet"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"7bf532a93044a04fb010a5659bcc0394caeaaf5b14626f281699bddc4cf97c26","typeScriptVersion":"2.0","_id":"@types/chardet@0.8.0","dist":{"shasum":"40932a9d751bb1ff22e7403312faaf81755ad432","size":1832,"noattachment":false,"key":"/@types/chardet/-/@types/chardet-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/chardet/download/@types/chardet-0.8.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chardet_0.8.0_1572455738240_0.4526022211904972"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:36:20.841Z","publish_time":1572455738392,"_cnpm_publish_time":1572455738392},"0.5.0":{"name":"@types/chardet","version":"0.5.0","description":"TypeScript definitions for chardet","license":"MIT","contributors":[{"name":"Hauke Oldsen","url":"https://github.com/Gebatzens","githubUsername":"Gebatzens"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"12340639f3b3e0750148c23ca0a3519246dca30d912e2d00e9c5032774b78d07","typeScriptVersion":"2.0","_id":"@types/chardet@0.5.0","dist":{"shasum":"5b40c428be763dcb4cc26dbd187e1dc199eb162b","size":1685,"noattachment":false,"key":"/@types/chardet/-/@types/chardet-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/chardet/download/@types/chardet-0.5.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chardet_0.5.0_1524781685899_0.3129096737938146"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:36:19.982Z","publish_time":1524781685981,"_cnpm_publish_time":1524781685981}},"readme":"# Installation\r\n> `npm install --save @types/chardet`\r\n\r\n# Summary\r\nThis package contains type definitions for chardet (https://github.com/runk/node-chardet).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chardet.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chardet/index.d.ts)\r\n````ts\r\n// Type definitions for chardet 0.8\n// Project: https://github.com/runk/node-chardet\n// Definitions by: Hauke Oldsen <https://github.com/Gebatzens>\n//                 Sam Hinshaw <https://github.com/samhinshaw>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference types=\"node\" />\n\nexport interface Confidence {\n    name: string;\n    confidence: number;\n    lang?: string | undefined;\n}\n\nexport interface Options {\n    returnAllMatches?: boolean | undefined;\n    sampleSize?: number | undefined;\n}\n\n// As of v0.6, these fns return the highest-confidence result\nexport function detect(buf: Buffer, opts?: Options): string | null;\n\nexport function detectFile(path: string, cb: (err: any, result: string | null) => void): void;\nexport function detectFile(path: string, opts: Options, cb: (err: any, result: string | null) => void): void;\n\nexport function detectFileSync(path: string, opts?: Options): string | null;\n\n// These fns were introduced in v0.6 to return an array of confidences.\nexport function detectAll(buf: Buffer, opts?: Options): Confidence[] | null;\n\nexport function detectFileAll(path: string, cb: (err: any, result: Confidence[] | null) => void): void;\nexport function detectFileAll(path: string, opts: Options, cb: (err: any, result: Confidence[] | null) => void): void;\n\nexport function detectFileAllSync(path: string, opts?: Options): Confidence[] | null;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 06 Jul 2021 18:05:50 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 [Hauke Oldsen](https://github.com/Gebatzens), and [Sam Hinshaw](https://github.com/samhinshaw).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chardet","license":"MIT"}