filesize.js - JavaScript library to generate a human readable String describing the file size

  •        29

filesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string. filesize() accepts an optional descriptor Object as a second argument, so you can customize the output.

https://filesizejs.com
https://github.com/avoidwork/filesize.js

Tags
Implementation
License
Platform

   




Related Projects

pretty-bytes - Convert bytes to a human readable string: 1337 → 1.34 kB

  •    Javascript

Useful for displaying file sizes for humans.Note that it uses base-10 (e.g. kilobyte). Read about the difference between kilobyte and kibibyte.

adept-jpg-compressor - A Bash script to automate adaptive JPEG compression using common CLI tools

  •    Shell

When compressing JPEG images, the same compression level is used on the entire image. However, most JPEG images contain homogeneous and heterogeneous areas, which are varyingly well-suited for compression. Compressing heterogeneous areas in JPEGs to reduce filesize causes compression artefacts due to the lossy nature of JPEG compression. This script adaptively alters the compression level for areas within JPEGs (per-block) to achieve optimized file size while maintaining a decent visual quality. This script achieves a significantly reduced file size compared to standard tools such as cjpeg while maintaining good visual quality, as can be measured via SSIM. This is good news for the Web Performance and thus Web Developer community to achieve a great user experience on websites.

FSArchiver - Filesystem Archiver for Linux

  •    C

FSArchiver is a system tool that allows you to save the contents of a file-system to a compressed archive file. The file-system can be restored on a partition which has a different size and it can be restored on a different file-system. Unlike tar/dar, FSArchiver also creates the file-system when it extracts the data to partitions. Everything is checksummed in the archive in order to protect the data. If the archive is corrupt, you just loose the current file, not the whole archive.

spaceman-diff - diff images from the command line

  •    Shell

spaceman-diff is a quick drop in to git-diff. The idea is that you can just git diff like normal and, if you've changed an image file, spaceman-diff will render your images in a colorful ASCII approximation in your shell along with helpful data like file size changes. The goal is that spaceman-diff gives you a quick way of verifying that yes, the image you're committing is the image you want to commit, and yes, the image you're committing isn't accidentally 20 terabytes in size or something foolish like that.

imgmin - Lossy image optimization

  •    C

Image files constitute a majority of static web traffic.[17] Unlike text-based web file formats, binary image files do not benefit from built-in webserver-based HTTP gzip compression. imgmin offers an automated means for enforcing image quality as a standalone tool and as a webserver module. imgmin determines the optimal balance of image quality and filesize, often greatly reducing image size while retaining quality for casual use, which translates into more efficient use of storage and network bandwidth, which saves money and improves user experience. Websites are composed of several standard components. Most (HTML, CSS, Javascript, JSON, XML, etc) are text-based. They can be efficiently compressed for transfer via gzip, supported by all mainstream webservers and browsers. But image and video files are binary, non-text files, and generally are not worth auto-compressing in the webserver.


Compressed File System Sizing Tool

  •    

The Compressed File System Sizing Tool scans a directory and outputs the size, the compressed size, and the type of each file in the tree. It helps a designer configure a filesystem for embedded Linux systems using xip cramfs or axfs.

jsteg - JPEG steganography

  •    Go

jsteg is a package for hiding data inside jpeg files, a technique known as steganography. This is accomplished by copying each bit of the data into the least-significant bits of the image. The amount of data that can be hidden depends on the filesize of the jpeg; it takes about 10-14 bytes of jpeg to store each byte of the hidden data. Note that the data is not demarcated in any way; the caller is responsible for determining which bytes of hidden it cares about. The easiest way to do this is to prepend the data with its length.

file system checksum checker

  •    C

fswatch is a small, simple utility that detects changes in a filesystem. it watches for a file system integrity. it checks inode, links, uid, gid, mode, size, flags, ctime, checksum (SHA1).

SeqBox - A single file container/archive that can be reconstructed even after total loss of file system structures

  •    Python

An SBX container exists both as a normal file in a mounted file system, and as a collection of recognizable blocks at a lower level.SBX blocks have a size sub-multiple/equal to that of a sector, so they can survive any level of fragmentation. Each block have a minimal header that include a unique file identifier, block sequence number, checksum, version. Additional, non critical info/metadata are contained in block 0 (like name, file size, crypto-hash, other attributes, etc.).

webpack-bundle-size-analyzer - A tool for finding out what contributes to the size of Webpack bundles

  •    TypeScript

A small utility to help you find out what is contributing to the size of your Webpack bundles. Webpack has a JSON output mode which produces detailed machine-readable information about everything that has been included in a generated bundle.

BrowserFS - BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends

  •    Javascript

BrowserFS is an in-browser file system that emulates the Node JS file system API and supports storing and retrieving files from various backends. BrowserFS also integrates nicely into the Emscripten file system. More backends can be defined by separate libraries, so long as they extend the BaseFileSystem class. Multiple backends can be active at once at different locations in the directory hierarchy.

littleutils

  •    C

The littleutils include a duplicate file finder (repeats), image optimizers (opt-jpg, opt-png, opt-gif, recomp-jpg), file rename tools (lowercase, uppercase, pren), archive recompressors (to-gzip, to-bzip, to-7zip, to-lzma, to-lzip, to-xz), a tempfile utility (tempname), file property tools (filedate, filemode, filenode, fileown, filesize, and lrealpath), and others. See the README file for more details.

Manage upload files for SP 2010

  •    

The feature is responsible for management uploading file size using file extensions (i.e: .txt), control upload document into library and attachments for lists.

SeaweedFS - Simple and highly scalable distributed file system

  •    Go

SeaweedFS is a simple and highly scalable distributed file system. There are two objectives: to store billions of files! to serve the files fast! Instead of supporting full POSIX file system semantics, SeaweedFS choose to implement only a key~file mapping. Similar to the word "NoSQL", you can call it as "NoFS".

enhanced-github - :rocket: Chrome extension to display size of each file, download link and copy file contents directly to clipboard

  •    Javascript

Note: For private repos(Issue #6), Github Access Token is required. Follow the steps mentioned below to add your Github Access Token. Since this extension fetches data using Github public v3 API for showing file size and download_url, it consumes free quota which is very less Github API Rate Limiting.

diskover - File system crawler, disk space usage, file search engine and file system analytics powered by Elasticsearch

  •    Python

diskover is an open source file system crawler and disk space usage software that uses Elasticsearch to index and manage data across heterogeneous storage systems. Using diskover, you are able to more effectively search and organize files and system administrators are able to manage storage infrastructure, efficiently provision storage, monitor and report on storage use, and effectively make decisions about new infrastructure purchases. As the amount of file data generated by business' continues to expand, the stress on expensive storage infrastructure, users and system administrators, and IT budgets continues to grow.

Upload With Progress Bar (Manage Media)

  •    

Upload file up to any size in .net. Validate the file (size, type) before upload. Upload with progress (Size, Speed, Time, TotalSize,...) (without any flash and silverlight). Upload to temp file during upload (i inject the .net framework ;) ) Save with too many config. Si...

BitsetWrapper - A bit array wrapper over Uint8Array, edits bits, but is stored as a byte array.

  •    Javascript

A bit array wrapper over Uint8Array, edits bits, but is stored as a byte array. The idea is that you use it as a bit array, you can also use it as a byte array of "any" type (until it reaaches max word size which for me is 53 bits) So yeah you could convert bytes back and forth bases, Also since it's based in Uint8Array, It's typed, therefore it won't change length as easily. You will have to concantenate it, it also has "useful" comments of why some thnigs exists, It's nice.

casync - Content-Addressable Data Synchronization Tool

  •    C

Encoding: Let's take a large linear data stream, split it into variable-sized chunks (the size of each being a function of the chunk's contents), and store these chunks in individual, compressed files in some directory, each file named after a strong hash value of its contents, so that the hash value may be used to as key for retrieving the full chunk data. Let's call this directory a "chunk store". At the same time, generate a "chunk index" file that lists these chunk hash values plus their respective chunk sizes in a simple linear array. The chunking algorithm is supposed to create variable, but similarly sized chunks from the data stream, and do so in a way that the same data results in the same chunks even if placed at varying offsets. For more information see this blog story. Decoding: Let's take the chunk index file, and reassemble the large linear data stream by concatenating the uncompressed chunks retrieved from the chunk store, keyed by the listed chunk hash values.

TinyNav.js - Responsive navigation plugin that weighs just 443 bytes

  •    Javascript

TinyNav.js is a tiny jQuery plugin (452 bytes minified and gzipped) that converts <ul> and <ol> navigations to a select boxes for small screen. It also automatically selects the current page and adds selected="selected" for that item. There's also a Wordpress plugin available, here. This isn't the first plugin to do this and it doesn't provides a lot of options, but it might be the smallest (file size).






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.