
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@andrewbranch/untar.js
Advanced tools
Here's a simple pure-javascript implementation of untar (it's mostly taken verbatim from Jeff Schiller's bitjs, but no longer in a webworker— though ironically I'm making this in order to stick it back in a webworker, but I digress).
Here's a basic usage, it seems to work alright.
var untar = require('untar.js');
var fs = require('fs');
var file = fs.readFileSync(__dirname + '/' + 'test.tar');
untar.untar(file).forEach(function(file){
console.log(file.filename, file.fileData.length);
})
It's also possible to combine this with pako
in order to decode tarballs
var untar = require('untar.js')
var pako = require('pako')
var fs = require('fs')
var unzipped = pako.inflate(fs.readFileSync(__dirname + '/' + 'with-5.0.0.tgz'));
untar.untar(unzipped).map(function(file){
console.log(file.filename)
})
It's pretty minimal as far as APIs go, it exposes a single method untar
which can be passed an ArrayBuffer. It returns a list of TarLocalFile
objects. The important fields are size
, filename
, and fileData
.
FAQs
untar salvaged from bitjs
The npm package @andrewbranch/untar.js receives a total of 170,798 weekly downloads. As such, @andrewbranch/untar.js popularity was classified as popular.
We found that @andrewbranch/untar.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.