0.2.4 • Published 8 years ago

gladstone v0.2.4

Weekly downloads
35
License
NCSA
Repository
github
Last release
8 years ago

:handbag: Gladstone :handbag:

Build Status

This is a node module for creating BagIt archives.

The goal of the project is to implement the complete BagIt 0.97 specification.

Installation

It can be downloaded and installed from npm:

npm install -g gladstone

Command line usage

To use it from the command-line you provide a source directory that you want want to create a BagIt archive for, a name for the bag, and a hashing algorithm.

gladstone --bagName ~/bagname --originDirectory ~/source --cryptoMethod md5 

The BagIt specification has some optional metadata fields that can be present in the bag-info.txt file. These optional fields can be passed on the command line:

gladstone --bagName ~/bagname --originDirectory ~/source --cryptoMethod md5 --sourceOrganization "Your Org"

Programmatic usage

You can also use gladstone in other node applications by passing the createBagDirectory function a JSON object:

var gladstone = require('gladstone');

gladstone.createBagDirectory({ bagName: '/path/to/new/bag',
                               originDirectory: '/path/to/dir/to/bag',
                               cryptoMethod: 'sha256',
                               sourceOrganization: 'Example Organization',
                               organizationAddress: '123 Street',
                               contactName: 'Contact Name',
                               contactPhone: '555-555-5555',
                               contactEmail: 'test@example.org',
                               externalDescription: 'An example description'
                            });
0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3-xs

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago