{"_id":"@types/byte-size","_rev":"3016249","name":"@types/byte-size","description":"TypeScript definitions for byte-size","dist-tags":{"latest":"8.1.0","ts3.7":"8.1.0","ts3.8":"8.1.0","ts3.9":"8.1.0","ts4.0":"8.1.0","ts4.1":"8.1.0","ts4.2":"8.1.0","ts4.3":"8.1.0","ts4.4":"8.1.0","ts4.5":"8.1.0","ts4.6":"8.1.0","ts4.7":"8.1.0","ts4.8":"8.1.0","ts4.9":"8.1.0","ts5.0":"8.1.0","ts5.1":"8.1.0","ts5.2":"8.1.0","ts5.3":"8.1.0"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-10-17T06:04:05.000Z","created":"2021-09-14T21:02:14.480Z","8.1.0":"2021-09-14T21:02:14.480Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/byte-size"},"versions":{"8.1.0":{"name":"@types/byte-size","version":"8.1.0","description":"TypeScript definitions for byte-size","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size","license":"MIT","contributors":[{"name":"lntel","url":"https://github.com/lntel","githubUsername":"lntel"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/byte-size"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"ccaf1e5c07a66f41a0482637fd21cfc775dc8a831af9e026086b8714c60eb1a4","typeScriptVersion":"3.7","_id":"@types/byte-size@8.1.0","dist":{"shasum":"013a3995d1ff2d85ad27da0801029f13328bd91b","size":1679,"noattachment":false,"key":"/@types/byte-size/-/@types/byte-size-8.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/byte-size/download/@types/byte-size-8.1.0.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-size_8.1.0_1631653334318_0.16744514671585708"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T07:43:32.964Z","publish_time":1631653334480,"_cnpm_publish_time":1631653334480}},"readme":"# Installation\r\n> `npm install --save @types/byte-size`\r\n\r\n# Summary\r\nThis package contains type definitions for byte-size (https://github.com/75lb/byte-size#readme).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size/index.d.ts)\r\n````ts\r\n// Type definitions for byte-size 8.1\n// Project: https://github.com/75lb/byte-size#readme\n// Definitions by: lntel <https://github.com/lntel>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\nexport interface ByteSizeOptions {\n    precision?: number;\n    units?: string;\n    customUnits?: object;\n    toStringFn?: () => string;\n    locale?: string | string[];\n}\n\nexport interface ByteSizeResult {\n    value: string;\n    unit: string;\n    long: string;\n    toString: () => string;\n}\n\ndeclare function byteSize(bytes: number, options?: ByteSizeOptions): ByteSizeResult;\n\ndeclare namespace byteSize {\n    function defaultOptions(options: ByteSizeOptions): void;\n}\n\nexport default byteSize;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 14 Sep 2021 21:01:31 GMT\r\n * Dependencies: none\r\n * Global values: none\r\n\r\n# Credits\r\nThese definitions were written by [lntel](https://github.com/lntel).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size","license":"MIT"}