filing
v0.1.2
Published
Compress or uncompress files in the browser and Node.
Downloads
49
Maintainers
Readme
Filing
Examples
Browser
import { FilingBrowser } from 'filing'
const filing = new FilingBrowser({
wasmUrl: 'https://unpkg.com/filing/dist/esm/wasm/archive.wasm'
})
filing.extract(file).then((list) => {
console.log('list', list)
})
Browser Web Worker(Recommend)
import { FilingBrowserWorker } from 'filing'
const filing = new FilingBrowserWorker({
wasmUrl: 'https://unpkg.com/filing/dist/esm/wasm/archive.wasm'
})
filing.extract(file).then((list) => {
console.log('list', list)
})
NodeJS
import { FilingNodeJS } from 'filing'
const filing = new FilingNodeJS()
filing.extract(file).then((list) => {
console.log('list', list)
})