ls a tar with gnu tar in child processes.
this is a silly wrapper around tar -tvf that manages spawning only up to a number of processes your system can handle.
warning. this may only work on linux as it parses the string output of gnutar. use node tar for x platform. https://www.npmjs.com/package/tar
const ls = require('ls-tar')
ls('./my-tar.tgz', function(err,result){
console.log(result)
})
result is an array of entires. each entry has a name and size.
[{"name":"a/","size":"0"},{"name":"a/file.txt","size":"8"}]
ls(tar,cb)
ls = require('ls-tar')ls.stream(tar,cb)
{"name":"a/file.txt","size":"8"}