All Projects → ankitrohatgi → tarballjs

ankitrohatgi / tarballjs

Licence: MIT license
Javascript library to create or read tar files in the browser

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to tarballjs

go-tarfs
Read a tar file contents using go1.16 io/fs abstraction
Stars: ✭ 18 (-25%)
Mutual labels:  tarball, tar
PLzmaSDK
PLzmaSDK is (Portable, Patched, Package, cross-P-latform) Lzma SDK.
Stars: ✭ 28 (+16.67%)
Mutual labels:  tarball, tar
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (+804.17%)
Mutual labels:  tar, tar-archive
tartifacts
📦 Create artifacts for your assemblies
Stars: ✭ 20 (-16.67%)
Mutual labels:  tarball, tar
zipstream
A command line tool that allows you to easily share files and directories over the network
Stars: ✭ 49 (+104.17%)
Mutual labels:  tar
animate
PixiJS runtime library for content from Adobe Animate CC
Stars: ✭ 142 (+491.67%)
Mutual labels:  javascript-library
example-typescript-package
Example TypeScript Package ready to be published on npm & Tutorial / Instruction / Workflow for 2021
Stars: ✭ 71 (+195.83%)
Mutual labels:  javascript-library
consono
The most correct, informative, appealing and configurable variable inspector for JavaScript
Stars: ✭ 17 (-29.17%)
Mutual labels:  javascript-library
prime.js
Prime JS is a different kind of JavaScript framework. Prime is written in 100% standard, explicit, and namespaced Object Oriented JavaScript.
Stars: ✭ 13 (-45.83%)
Mutual labels:  javascript-library
animusjs
🎆 AnimusJS is the solution for combine JS and CSS animations.
Stars: ✭ 42 (+75%)
Mutual labels:  javascript-library
html-to-react
A lightweight library that converts raw HTML to a React DOM structure.
Stars: ✭ 696 (+2800%)
Mutual labels:  javascript-library
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-29.17%)
Mutual labels:  javascript-library
iFrameX
Iframe generator with dynamic content injection like HTML, Javascript, CSS, etc. and two ways communication, parent <-> iframe.
Stars: ✭ 18 (-25%)
Mutual labels:  javascript-library
constant-time-js
Constant-time JavaScript functions
Stars: ✭ 43 (+79.17%)
Mutual labels:  javascript-library
html-chain
🔗 A super small javascript library to make html by chaining javascript functions
Stars: ✭ 32 (+33.33%)
Mutual labels:  javascript-library
rutils
ruitls.js 涵盖了前端开发常用的工具方法,有字符串、数字、数组、缓存、文件等,尽可能的避免前端在开发中重复造轮子
Stars: ✭ 14 (-41.67%)
Mutual labels:  javascript-library
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (+116.67%)
Mutual labels:  javascript-library
puddle.js
An ASCII/Node based fluid simulation library.
Stars: ✭ 102 (+325%)
Mutual labels:  javascript-library
node-banner
Easily integrate ASCII flavored banners to your CLI tool
Stars: ✭ 18 (-25%)
Mutual labels:  javascript-library
costa-rica-iban
Funciones utiles para extraer y validar información general de números de cuenta IBAN de Costa Rica
Stars: ✭ 16 (-33.33%)
Mutual labels:  javascript-library

tarballjs

Javascript library to create or read tar files in the browser

Why?

It is often necessary to pack data into single files in the browser (e.g. creating a "project" file consisting of images+data in WebPlotDigitizer). One way is to create simple tarballs with all the data. There are a few existing libraries that do this, but this seems easy enough to do so I decided to do make my own library for learning purposes.

Status

There are a few known limitations with this library:

  • Browser only, no support for NodeJS.
  • File name (including path) has to be less than 100 characters.
  • Maximum total file size seems to be limited to somewhere between 500MB to 1GB (exact limit is unknown).

Some benefits of using this library:

  • Code is a lot cleaner than most other implementations that I can find.
  • Unit tests for read and write.

Browser Support

This works fine on any recent version of Chrome, Firefox or Safari. To test your browser, run the unit tests here: http://arohatgi.info/tarballjs/tests/

Running Unit Tests

For Chrome, the test page has to be hosted on a HTTP server. An easy way is to use Python:

In the root directory of this project, do:

python -m SimpleHTTPServer 8000

Then browse to http://localhost:8000/tests/

For a quick test, you can visit: http://arohatgi.info/tarballjs/tests/

In Firefox, you can simply load tests/index.html without starting a web server.

Other Implementations

If you are aware of other implementations, then please let me know :)

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].