Javascript

tar example in nodejs

The snippet below will look inside directory /inputdir and archives the sub-directory called mydirectorywithfiles. The resulting tar file is written to /outdir/mytarfile.tar.gz.