Commit 42188317 authored by chaz's avatar chaz 👻

Put source in subfolders to clean up root

parent 5d1bac5f
......@@ -7,10 +7,11 @@ matching a search term.
Install: just git clone, for now. Then run `npm install` in the checkout.
Usage: run `./archive-collection.js --help` to see options.
Usage: run `./bin/archive-collection.js --help` to see options.
Example: `./archive-collection.js --max 100 -p 2 bibliotheca-philadelphiensis`
will download the 100 most recently uploaded books in the [Bibliotheca
Example:
`./bin/archive-collection.js --max 100 -p 2 bibliotheca-philadelphiensis` will
download the 100 most recently uploaded books in the [Bibliotheca
Philadelphiensis](https://archive.org/details/bibliotheca-philadelphiensis)
medieval manuscripts collection, 2 at a time.
......
#!/usr/bin/env node
const archive = require('./archive.js');
const fs = require('fs');
const Log = require('./log.js');
const path = require('path');
const Queue = require('./queue.js');
const util_ = require('./util.js');
const yargs = require('yargs');
const {archive, Log, Queue, util: util_} = require('../index.js');
const getArgs = () => {
const coerceNonEmptyString = x => {
if (typeof x !== 'string') throw new Error("String required");
......
module.exports = {
archive: require('./archive.js'),
Log: require('./log.js'),
main: require('./archive-collection.js'),
Progress: require('./progress.js'),
Queue: require('./queue.js'),
util: require('./util.js'),
archive: require('./src/archive.js'),
Log: require('./src/log.js'),
main: require('./bin/archive-collection.js'),
Progress: require('./src/progress.js'),
Queue: require('./src/queue.js'),
util: require('./src/util.js'),
};
......@@ -6,7 +6,7 @@
"author": "Charles Lindsay <charleslindsay@pm.me>",
"main": "index.js",
"bin": {
"archive-collection": "./archive-collection.js"
"archive-collection": "bin/archive-collection.js"
},
"dependencies": {
"cheerio": "^1.0.0-rc.3",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment