UNPKG
bagit-tools
Version:
latest (0.0.0)
0.0.0
collection of modules to manage BagIt bags
github.com/joehand/bagit-tools
joehand/bagit-tools
bagit-tools
/
cli.js
10 lines
(7 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
bagTools =
require
(
'.'
)
var
dir = process.
argv
[
2
] || process.
cwd
() bagTools.
verify
(dir,
function
(
err, valid, results
) {
if
(err)
throw
err
if
(valid)
console
.
log
(
'VALID'
)
else
console
.
log
(
'FAIL'
) })