1.2.0 • Published 7 years ago

untar-memory v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

untar-memory

Untar a tarball to an in-memory filesystem

build status npm version dependency status license code style: standard

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 

License

MIT