Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/queckezz/untar-memory
Untar a tarball to an in-memory filesystem
https://github.com/queckezz/untar-memory
Last synced: about 2 months ago
JSON representation
Untar a tarball to an in-memory filesystem
- Host: GitHub
- URL: https://github.com/queckezz/untar-memory
- Owner: queckezz
- License: mit
- Created: 2016-10-05T14:07:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-02T15:48:21.000Z (about 8 years ago)
- Last Synced: 2024-08-11T11:58:30.525Z (5 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# untar-memory
> Untar a tarball to an [in-memory filesystem](https://github.com/webpack/memory-fs)
[![build status](https://img.shields.io/travis/queckezz/untar-memory.svg?style=flat-square)](https://travis-ci.org/queckezz/untar-memory)
[![npm version](https://img.shields.io/npm/v/untar-memory.svg?style=flat-square)](https://npmjs.org/package/untar-memory)
[![dependency status](https://img.shields.io/david/queckezz/untar-memory.svg?style=flat-square)](https://david-dm.org/queckezz/untar-memory)
[![license](https://img.shields.io/npm/l/untar-memory.svg?style=flat-square)](./license)
[![code style: standard](https://img.shields.io/badge/code-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)## Installation
```bash
$ npm install untar-memory
```## Example
```js
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
```bash
$ npm test
```## License
[MIT](./license)