pako VS pretty-bytes

Compare pako vs pretty-bytes and see what are their differences.

pako

high speed zlib port to javascript, works in browser & node.js (by nodeca)

pretty-bytes

Convert bytes to a human readable string: 1337 → 1.34 kB (by sindresorhus)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
pako pretty-bytes
6 2
5,295 1,070
0.8% -
0.6 3.1
about 1 year ago 10 months ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pako

Posts with mentions or reviews of pako. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-30.
  • Gzip library for client-side compression
    2 projects | /r/webdev | 30 Jun 2022
    try pako
  • Storing State in the URL
    2 projects | news.ycombinator.com | 12 May 2022
    A trick I've used on top of serializing JSON in the URL is in-browser compression with a library like pako [0] (zlib in JavaScript). This helps you get more data in before you reach the browser limit for URL length.

    [0] https://github.com/nodeca/pako

  • Browsers can do that?
    10 projects | dev.to | 9 Feb 2022
    Another operation that is sometimes desired is to take several files and give the user a compressed file. There are actually a surprisingly large amount (jszip, pako) of client side options here, but my favorite so far when it comes to speed, size and working with .zip has been fflate. But if you'd like to work with other formats, there are also libraries to decompress 7-Zip, RAR & TAR.
  • Major updates for bundle.js.org v0.0.3
    9 projects | dev.to | 19 Sep 2021
    I used monaco-editor for the code-editor, esbuild and rollup as bundler and treeshaker respectively, pako as a js port of the zlib and gzip libraries, pretty-bytes to convert the gzip size to human readable values, and countapi-js to keep track of the number of page visits, in a private and secure way.
  • Interacting with usernotes outside of toolbox
    2 projects | /r/toolbox | 14 Jun 2021
    Just wanted to let you know the most current version of pako does not work with the example on the wiki page. It errors out with "unknown compression format". I had to use the version found in Toolbox lib folder in order to get the example from the wiki page to work.
  • 298 App Lab apps in a Steam-like filter system
    2 projects | /r/OculusQuest | 8 Jun 2021
    Uncompressing should be straightforward with pako.js.

pretty-bytes

Posts with mentions or reviews of pretty-bytes. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-19.
  • NPM Needs: pretty-bytes
    1 project | dev.to | 9 Apr 2022
    Github Repo: sindresorhus/pretty-bytes
  • Major updates for bundle.js.org v0.0.3
    9 projects | dev.to | 19 Sep 2021
    I used monaco-editor for the code-editor, esbuild and rollup as bundler and treeshaker respectively, pako as a js port of the zlib and gzip libraries, pretty-bytes to convert the gzip size to human readable values, and countapi-js to keep track of the number of page visits, in a private and secure way.

What are some alternatives?

When comparing pako and pretty-bytes you can also consider the following projects:

JSZip - Create, read and edit .zip files with Javascript

pretty-ms - Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`

fast-zlib - Shared context synchronous compression

humanize - A JS library for adding a “human touch” to data.

decompress-zip - Module that decompresses zip files

ms.js - Tiny millisecond conversion utility

fflate - High performance (de)compression in an 8kB package

read-art - Scrape/Crawl article from any site automatically. Make any web page readable, no matter Chinese or English.

Archiver - a streaming interface for archive generation

pretty-error - See node.js errors with less clutter

decompress - Extracting archives made easy

uniroll - Opinionated universal frontend bundler in browser