1.2.0 • Published 7 years ago
untar-memory v1.2.0
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