UNPKG
dir-packer
Version:
latest (0.1.1)
0.1.1
0.1.0
A tool for packing directories into tar.gz files.
github.com/zkochan/dir-packer
zkochan/dir-packer
dir-packer
/
examples
/
pack
/
pack.js
15 lines
(12 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
var
pack =
require
(
'../../'
).
pack
;
pack
(
'./foo'
,
'./foo.tar.gz'
) .
then
(
function
(
) {
console
.
log
(
'success!'
); }) .
catch
(
function
(
err
) {
if
(err) {
console
.
log
(err);
return
; } });