bagit-tools
collection of modules to manage BagIt bags
Install
npm install bagit-tools
Usage
var bagitTools =
Verify Bag
var bagDir = '/downloads/my-bag'bagTools
Results is an array of TAP test objects for each verification step. Run against the LOC bagit-conformance-suite with npm test
.
Bag Test Verification Status
- 1.0 - All passing
- 0.97 - Valid/Invalid Passing, Warnings need some work
- ... earlier version before 0.97 all valid
Bag Fs
Read and write from bags with an fs-like API via bagit-fs.
var bagFs = fsvar bag = // write files to bag's data folderfs // ... LATER after all files are writtenbag
Contributing
Contributions welcome! Please read the contributing guidelines first.