Type definitions are available in the @types/bytes package


  • Version 3.1.2
  • Published
  • 12.3 kB
  • No dependencies
  • MIT license


npm i bytes
yarn add bytes
pnpm add bytes


Utility to parse a string bytes to bytes and vice-versa

Dependencies (0)

No dependencies.

Dev Dependencies (4)

Peer Dependencies (0)

No peer dependencies.


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/bytes.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/bytes"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>