@myml/js-targz
v0.1.1
Published
Preview tar.gz in the browser
Downloads
3
Readme
js-targz
Preview tar.gz in the browser
HTML script
CDN
<script src="https://cdn.jsdelivr.net/npm/@myml/[email protected]/index.js"></script>
Demo
See ./demo.html
Module import
Install
yarn add @myml/js-targz
Import
import { targz } from '@myml/js-targz'
Use
targz(files[0], (header) => {
console.log(header);
});
targz(files[0], (header) => {
// stop loop
if (header.Name == "found_file") {
return true;
}
console.log(header);
});