pako
pretty-bytes
pako | pretty-bytes | |
---|---|---|
6 | 2 | |
5,295 | 1,076 | |
0.0% | - | |
0.6 | 3.1 | |
about 1 year ago | 10 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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
-
Gzip library for client-side compression
try pako
-
Storing State in the URL
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?
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
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
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
Uncompressing should be straightforward with pako.js.
pretty-bytes
-
NPM Needs: pretty-bytes
Github Repo: sindresorhus/pretty-bytes
-
Major updates for bundle.js.org v0.0.3
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?
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