mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.2 KiB
40 lines
2.2 KiB
{
|
|
"author": {
|
|
"name": "Isaac Z. Schlueter",
|
|
"email": "i@izs.me",
|
|
"url": "http://blog.izs.me/"
|
|
},
|
|
"name": "tar",
|
|
"description": "tar for node",
|
|
"version": "2.2.1",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/isaacs/node-tar.git"
|
|
},
|
|
"main": "tar.js",
|
|
"scripts": {
|
|
"test": "tap test/*.js"
|
|
},
|
|
"dependencies": {
|
|
"block-stream": "*",
|
|
"fstream": "^1.0.2",
|
|
"inherits": "2"
|
|
},
|
|
"devDependencies": {
|
|
"graceful-fs": "^4.1.2",
|
|
"rimraf": "1.x",
|
|
"tap": "0.x",
|
|
"mkdirp": "^0.5.0"
|
|
},
|
|
"license": "ISC",
|
|
"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'. If the `fromBase` property is set to true,\nthe tar will contain files relative to the path passed, and not with\nthe path included.\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": "52237e39d2eb68d22a32d9a98f1d762189fe6a3d",
|
|
"bugs": {
|
|
"url": "https://github.com/isaacs/node-tar/issues"
|
|
},
|
|
"homepage": "https://github.com/isaacs/node-tar#readme",
|
|
"_id": "tar@2.2.1",
|
|
"_shasum": "8e4d2a256c0e2185c6b18ad694aec968b83cb1d1",
|
|
"_from": "tar@2.2.1"
|
|
}
|
|
|