Sha256: 365f53c2e08ed64176cf4e4323ff50ad3f437bb3dc9e19479af32f7847b6f1af

Contents?: true

Size: 488 Bytes

Versions: 53

Compression:

Stored size: 488 Bytes

Contents

var tar = require("../tar.js")
  , fstream = require("fstream")
  , fs = require("fs")

var dirDest = fs.createWriteStream('dir.tar')


function onError(err) {
  console.error('An error occurred:', err)
}

function onEnd() {
  console.log('Packed!')
}

var packer = tar.Pack({ noProprietary: true })
  .on('error', onError)
  .on('end', onEnd);

// This must be a "directory"
fstream.Reader({ path: __dirname, type: "Directory" })
  .on('error', onError)
  .pipe(packer)
  .pipe(dirDest)

Version data entries

53 entries across 50 versions & 19 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/tar/examples/packer.js
disco_app-0.18.0 test/dummy/node_modules/tar/examples/packer.js
disco_app-0.18.2 test/dummy/node_modules/tar/examples/packer.js
tang-0.2.1 spec/tang_app/node_modules/node-gyp/node_modules/tar/examples/packer.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/tar/examples/packer.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/node-gyp/node_modules/tar/examples/packer.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/node-gyp/node_modules/tar/examples/packer.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/node-gyp/node_modules/tar/examples/packer.js
tang-0.2.0 spec/tang_app/node_modules/node-gyp/node_modules/tar/examples/packer.js
tang-0.1.0 spec/tang_app/node_modules/node-gyp/node_modules/tar/examples/packer.js
tang-0.0.9 spec/tang_app/node_modules/node-gyp/node_modules/tar/examples/packer.js
enju_library-0.3.8 spec/dummy/node_modules/tar/examples/packer.js
ilog-0.4.1 node_modules/tar/examples/packer.js
ilog-0.4.0 node_modules/tar/examples/packer.js
ilog-0.3.3 node_modules/tar/examples/packer.js
jester-data-8.0.0 node_modules/tar/examples/packer.js
ezii-os-5.2.1 node_modules/tar/examples/packer.js
ezii-os-2.0.1 node_modules/tar/examples/packer.js
ezii-os-1.1.0 node_modules/tar/examples/packer.js
ezii-os-1.0.0 node_modules/tar/examples/packer.js