BagIt archives are standard for storing and transferring content. There are widely-deployed open source
utilities written for the standard in Python, Ruby, and Java. The Java and Python libraries are maintained
by the Library of Congress, which is a big user of the BagIt standard.

In its current implementation Gladstone bags whole directories recursively and then moves the resulting
bag to another destination. The Python implementation of BagIt does what’s called “bag in place” style
bagging. It will create the bag in the folder you give it. This may not be what you want if you don’t
want the folder you are creating your bag from to be a bag itself.

Gladstone is simpler than the other utilities, but I hope that may end up being helpful for someone
who needs to do bagging in JavaScript.

To use the command line utility you’ll need to install the node module globally: