summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/tar/package.json
blob: 2f261b890d78b14fcc503333449eb36387cffcb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  "author": {
    "name": "Isaac Z. Schlueter",
    "email": "i@izs.me",
    "url": "http://blog.izs.me/"
  },
  "name": "tar",
  "description": "tar for node",
  "version": "0.1.20",
  "repository": {
    "type": "git",
    "url": "git://github.com/isaacs/node-tar.git"
  },
  "main": "tar.js",
  "scripts": {
    "test": "tap test/*.js"
  },
  "dependencies": {
    "block-stream": "*",
    "fstream": "~0.1.28",
    "inherits": "2"
  },
  "devDependencies": {
    "tap": "0.x",
    "rimraf": "1.x"
  },
  "license": "BSD",
  "readme": "# node-tar\n\nTar for Node.js.\n\n[![NPM](https://nodei.co/npm/tar.png)](https://nodei.co/npm/tar/)\n\n## API\n\nSee `examples/` for usage examples.\n\n### var tar = require('tar')\n\nReturns an object with `.Pack`, `.Extract` and `.Parse` methods.\n\n### tar.Pack([properties])\n\nReturns a through stream. Use\n[fstream](https://npmjs.org/package/fstream) to write files into the\npack stream and you will receive tar archive data from the pack\nstream.\n\nThis only works with directories, it does not work with individual files.\n\nThe optional `properties` object are used to set properties in the tar\n'Global Extended Header'.\n\n### tar.Extract([options])\n\nReturns a through stream. Write tar data to the stream and the files\nin the tarball will be extracted onto the filesystem.\n\n`options` can be:\n\n```js\n{\n  path: '/path/to/extract/tar/into',\n  strip: 0, // how many path segments to strip from the root when extracting\n}\n```\n\n`options` also get passed to the `fstream.Writer` instance that `tar`\nuses internally.\n\n### tar.Parse()\n\nReturns a writable stream. Write tar data to it and it will emit\n`entry` events for each entry parsed from the tarball. This is used by\n`tar.Extract`.\n",
  "readmeFilename": "README.md",
  "gitHead": "b5931010907cd1ef5a186bc947954391050cbcce",
  "bugs": {
    "url": "https://github.com/isaacs/node-tar/issues"
  },
  "homepage": "https://github.com/isaacs/node-tar",
  "_id": "tar@0.1.20",
  "_shasum": "42940bae5b5f22c74483699126f9f3f27449cb13",
  "_from": "tar@~0.1.19"
}