{"_id":"@types/varint","_rev":"4666051","name":"@types/varint","description":"TypeScript definitions for varint","dist-tags":{"latest":"6.0.3","ts2.0":"5.0.0","ts2.1":"5.0.0","ts2.2":"5.0.0","ts2.3":"5.0.0","ts2.4":"5.0.0","ts2.5":"5.0.0","ts2.6":"5.0.0","ts2.7":"5.0.0","ts2.8":"5.0.0","ts2.9":"5.0.0","ts3.0":"5.0.0","ts3.1":"5.0.0","ts3.2":"5.0.0","ts3.3":"5.0.0","ts3.4":"6.0.0","ts3.5":"6.0.0","ts3.6":"6.0.0","ts3.7":"6.0.0","ts3.8":"6.0.0","ts3.9":"6.0.0","ts4.0":"6.0.0","ts4.1":"6.0.1","ts4.2":"6.0.1","ts4.3":"6.0.1","ts4.4":"6.0.1","ts4.5":"6.0.3","ts4.6":"6.0.3","ts4.7":"6.0.3","ts4.8":"6.0.3","ts4.9":"6.0.3","ts5.0":"6.0.3","ts5.1":"6.0.3","ts5.2":"6.0.3","ts5.3":"6.0.3","ts5.4":"6.0.3","ts5.5":"6.0.3","ts5.6":"6.0.3","ts5.7":"6.0.3","ts5.8":"6.0.3","ts5.9":"6.0.3","ts6.0":"6.0.3"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2026-04-10T22:42:06.000Z","created":"2018-08-15T20:46:01.775Z","6.0.3":"2023-11-07T18:41:33.623Z","6.0.2":"2023-10-18T17:16:01.974Z","6.0.1":"2022-11-07T20:39:15.996Z","6.0.0":"2021-03-02T17:06:07.266Z","5.0.0":"2018-08-15T20:46:01.775Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/varint"},"versions":{"6.0.3":{"name":"@types/varint","version":"6.0.3","description":"TypeScript definitions for varint","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/varint","license":"MIT","contributors":[{"name":"David Brockman Smoliansky","githubUsername":"dbrockman","url":"https://github.com/dbrockman"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/varint"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"02a873a41f24ae3756e248dabd9a6d369bc5faa8413b84a2a99a6e2592dadadc","typeScriptVersion":"4.5","_id":"@types/varint@6.0.3","dist":{"shasum":"e00b00f94d497d7cbf0e9f391cbc7e8443ae2174","size":2167,"noattachment":false,"key":"/@types/varint/-/@types/varint-6.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/varint/download/@types/varint-6.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/varint_6.0.3_1699382493421_0.6237427659605284"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T18:41:33.623Z","publish_time":1699382493623,"_source_registry_name":"default","_cnpm_publish_time":1699382493623},"6.0.2":{"name":"@types/varint","version":"6.0.2","description":"TypeScript definitions for varint","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/varint","license":"MIT","contributors":[{"name":"David Brockman Smoliansky","githubUsername":"dbrockman","url":"https://github.com/dbrockman"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/varint"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"46a1ad4e9b4eefd0e7e13a18d2a93b53151a051da00c17d5718569af5e62eb93","typeScriptVersion":"4.5","_id":"@types/varint@6.0.2","dist":{"shasum":"2400300e47c9827bf547fdfdb6f920a5339feb8f","size":2171,"noattachment":false,"key":"/@types/varint/-/@types/varint-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/varint/download/@types/varint-6.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/varint_6.0.2_1697649361798_0.6051077285644442"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T17:16:01.974Z","publish_time":1697649361974,"_source_registry_name":"default","_cnpm_publish_time":1697649361974},"6.0.1":{"name":"@types/varint","version":"6.0.1","description":"TypeScript definitions for varint","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/varint","license":"MIT","contributors":[{"name":"David Brockman Smoliansky","url":"https://github.com/dbrockman","githubUsername":"dbrockman"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/varint"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"a21448b17b7029da008f65afdeab07090b6de905345298b7f95da7ecff4ac949","typeScriptVersion":"4.1","_id":"@types/varint@6.0.1","dist":{"shasum":"018d424627c7951d370d73816e97e143dc99523b","size":2220,"noattachment":false,"key":"/@types/varint/-/@types/varint-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/varint/download/@types/varint-6.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/varint_6.0.1_1667853555805_0.056892087878126496"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-07T20:39:20.842Z","publish_time":1667853555996,"_cnpm_publish_time":1667853555996},"6.0.0":{"name":"@types/varint","version":"6.0.0","description":"TypeScript definitions for varint","license":"MIT","contributors":[{"name":"David Brockman Smoliansky","url":"https://github.com/dbrockman","githubUsername":"dbrockman"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/varint"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"f500ad1e8fe8ce25e177e06ce634f7dd5626ccf049adff7d692638c76287d741","typeScriptVersion":"3.4","_id":"@types/varint@6.0.0","dist":{"shasum":"4ad73c23cbc9b7e44379a7729ace7ed9c8bc9854","size":2159,"noattachment":false,"key":"/@types/varint/-/@types/varint-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/varint/download/@types/varint-6.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/varint_6.0.0_1614704767089_0.13748844121281767"},"_hasShrinkwrap":false,"publish_time":1614704767266,"_cnpm_publish_time":1614704767266,"_cnpmcore_publish_time":"2021-12-16T10:25:50.046Z"},"5.0.0":{"name":"@types/varint","version":"5.0.0","description":"TypeScript definitions for varint","license":"MIT","contributors":[{"name":"David Brockman Smoliansky","url":"https://github.com/dbrockman","githubUsername":"dbrockman"}],"main":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{"@types/node":"*"},"typesPublisherContentHash":"10024fb47efeff8a5668bb95dffa00ac7cd987cb987c524c0a6919e3b4eaba38","typeScriptVersion":"2.0","_id":"@types/varint@5.0.0","dist":{"shasum":"f667321775101a92d5c401f87a04274282538202","size":2097,"noattachment":false,"key":"/@types/varint/-/@types/varint-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/varint/download/@types/varint-5.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/varint_5.0.0_1534365961716_0.8550726943366109"},"_hasShrinkwrap":false,"publish_time":1534365961775,"_cnpm_publish_time":1534365961775,"_cnpmcore_publish_time":"2021-12-16T10:25:50.222Z"}},"readme":"# Installation\r\n> `npm install --save @types/varint`\r\n\r\n# Summary\r\nThis package contains type definitions for varint (https://github.com/chrisdickinson/varint#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/varint.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/varint/index.d.ts)\r\n````ts\r\n/// <reference types=\"node\"/>\n\nexport const encode: {\n    /**\n     * Encodes `num` into `buffer` starting at `offset`. returns `buffer`, with the encoded varint written into it.\n     * `varint.encode.bytes` will now be set to the number of bytes modified.\n     */\n    <TBuf extends Uint8Array | number[] = number[]>(num: number, buffer?: TBuf, offset?: number): TBuf;\n\n    /**\n     * Similar to `decode.bytes` when encoding a number it can be useful to know how many bytes where written (especially if you pass an output array).\n     * You can access this via `varint.encode.bytes` which holds the number of bytes written in the last encode.\n     */\n    bytes: number | undefined;\n};\n\nexport const decode: {\n    /**\n     * Decodes `data`, which can be either a buffer or array of integers, from position `offset` or default 0 and returns the decoded original integer.\n     * Throws a `RangeError` when `data` does not represent a valid encoding.\n     */\n    (buf: Uint8Array | number[], offset?: number): number;\n\n    /**\n     * If you also require the length (number of bytes) that were required to decode the integer you can access it via `varint.decode.bytes`.\n     * This is an integer property that will tell you the number of bytes that the last .decode() call had to use to decode.\n     */\n    bytes: number | undefined;\n};\n\n/**\n * returns the number of bytes this number will be encoded as, up to a maximum of 8.\n */\nexport function encodingLength(num: number): number;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 15:11:36 GMT\r\n * Dependencies: [@types/node](https://npmjs.com/package/@types/node)\r\n\r\n# Credits\r\nThese definitions were written by [David Brockman Smoliansky](https://github.com/dbrockman).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/varint","license":"MIT"}