var tar = require('tar-fs') var fs = require('fs') tar.pack('./dist').pipe(fs.createWriteStream('dist.tar'))