@myml/js-targz
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

js-targz

Preview tar.gz in the browser

HTML script

CDN

<script src="https://cdn.jsdelivr.net/npm/@myml/js-targz@0.1.0/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);
});

Readme

Keywords

Package Sidebar

Install

npm i @myml/js-targz

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

2.03 MB

Total Files

10

Last publish

Collaborators

  • myml