Archive
Stream object
Code examples below
stream.start(callback)
Specify event that will be called when unpacking will be started
stream.progress(callback)
Specify event that will be called every stream.progressInterval
ms
This callback will receive the current unpacked data size, total data size, and how much data was unpacked after the previous call
stream.finish(callback)
Specify event that will be called when unpacking will be finished
stream.error(callback)
Specify event that will be called when unpacking can't be started
stream.close(forced)
Close unpacking stream
Archive class
Archive.getType(path)
Archive.getInfo(path)
Archive.extract(path, unpackDir)
Archive.closeStreams(forced)
Last updated