bytes
npmv3.1.2Utility to parse a string bytes to bytes and vice-versa
Overview
bytes is an npm package that utility to parse a string bytes to bytes and vice-versa. The latest version is 3.1.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need utility to parse a string bytes to bytes and vice-versa and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of bytes.
Dependencies
Dev (4)
Used by
Popular packages that depend on bytes.
Alternatives to bytes
Parses set-cookie headers into objects
the complete solution for node.js command-line programs
Tool for transforming styles with JS plugins
A JavaScript parser
JavaScript parser and stringifier for YAML
A querystring parser that supports nesting and arrays, with a depth limit
Range header field string parser
Escape string for use in HTML
Functions for dealing with a PostgreSQL connection string
Parse, validate, manipulate, and display dates
Leaner CSS
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Frequently installed together
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Convert character encodings in pure javascript.
TypeScript definitions for node
Lightweight debugging utility for Node.js and the browser
A querystring parser that supports nesting and arrays, with a depth limit
Create and parse HTTP Content-Type header
Infer the content-type of a request.
Execute a callback when a request closes, finishes, or errors
Next generation testing framework powered by Vite
Delightful JavaScript Testing.
V8 coverage provider for Vitest
Version history
| Version | Published | License |
|---|---|---|
| 3.1.2latest | 4 years ago | MIT |
| 3.1.1 | 4 years ago | MIT |
| 3.1.0 | 7 years ago | MIT |
| 3.0.0 | 9 years ago | MIT |
| 2.5.0 | 9 years ago | MIT |
| 2.4.0 | 10 years ago | MIT |
| 2.3.0 | 10 years ago | MIT |
| 2.2.0 | 10 years ago | MIT |
| 2.1.0 | 11 years ago | MIT |
| 2.0.2 | 11 years ago | MIT |
| 2.0.1 | 11 years ago | MIT |
| 2.0.0 | 11 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.3.0 | 12 years ago | MIT |
| 0.2.1 | 13 years ago | MIT |
| 0.2.0 | 13 years ago | MIT |
| 0.1.0 | 14 years ago | MIT |
| 0.0.1 | 14 years ago | MIT |
Maintainers
Frequently asked questions
How do I install bytes?
Run `npm install bytes` to add bytes to your npm project.
What license is bytes released under?
bytes is distributed under the MIT license.
How popular is bytes?
bytes has approximately 0 downloads per week and 1 known dependent packages.