0.2.1 • Published 10 years ago

tarballify v0.2.1

Weekly downloads
26
License
-
Repository
github
Last release
10 years ago

TARBALLIFY ALL THE THINGS!

Put all the things from your server in one tarball.

var fs = require('fs')
var path = require('path')
var tarballify = require('tarballify')

console.log("creating new tarball …")
var tarball = tarballify('./server.js', {
    dirname:__dirname,
})
    .register(".node", function (body, file) {
        console.log("skip binary file:", file)
        return "skip binary"
    })
    .on('error', console.error.bind(console))
    .on('wait', function(){console.log("waiting for tarball to finish …")})
    .on('append', function(f){console.log("append",f.props.size, "\t",f.path)})
    .on('close', function(){console.log("done.")})
    .on('syntaxError', console.error.bind(console))
tarball.pipe(fs.createWriteStream(path.join(__dirname, "test.tar.gz")))

console.log("setup ok.")
tarball.end()
0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

11 years ago

0.0.7

11 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago