untar-memory
v1.2.0
Published
Untar a tarball to an in-memory filesystem
Downloads
326
Maintainers
Readme
untar-memory
Untar a tarball to an in-memory filesystem
Installation
$ npm install untar-memory
Example
const untarToMemory = require('untar-memory')
untarToMemory('./tar-file.tgz') // or pass in an existing read stream
.then((memoryFileSystem) => {
memoryFileSystem.readFileSync('/package/readme.md', 'utf8')
// -> # title ...
})
Tests
$ npm test