anyfreebook-cli 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -148,7 +148,7 @@ anyfreebook search "python" --json | jq '.results[] | select(.tier=="download")
148
148
  | --- | --- | --- |
149
149
  | `--limit <n>` | 10 | Results per page (max 50). |
150
150
  | `--page <n>` | 1 | Page number. |
151
- | `--source <name>` | `all` | `all`, `gutenberg`, `openlibrary`, `archive`, `googlebooks`, `pubmed`, `doaj`, `librivox`. |
151
+ | `--source <name>` | `all` | `all`, `gutenberg`, `openlibrary`, `archive`, `googlebooks`, `pubmed`, `doaj`, `librivox`, `openalex`, `wikisource`, `europeana`, `zenodo`, `otl`. |
152
152
  | `--format <fmt>` | — | Keep only results offering `epub`, `pdf`, `txt` or `html`. |
153
153
  | `--free-only` | off | Keep only `tier === "download"` results. |
154
154
  | `--json` | off | Print the raw JSON response to stdout and nothing else. |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "anyfreebook-cli",
3
- "version": "0.1.1",
4
- "description": "Search 7 open-access book sources and download only what is verifiably public domain.",
3
+ "version": "0.2.0",
4
+ "description": "Search 12 open-access book sources and download only what is verifiably public domain.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "anyfreebook": "bin/anyfreebook.js"
package/src/cli.js CHANGED
@@ -92,7 +92,7 @@ export function parseArgs(argv) {
92
92
  return opts;
93
93
  }
94
94
 
95
- export const GENERAL_HELP = `anyfreebook ${VERSION} — search 7 open-access book sources, download only what is verifiably public domain.
95
+ export const GENERAL_HELP = `anyfreebook ${VERSION} — search 12 open-access book sources, download only what is verifiably public domain.
96
96
 
97
97
  Usage:
98
98
  anyfreebook search <query> [options]
@@ -127,7 +127,8 @@ Archive, Google Books, PubMed Central, DOAJ and LibriVox.
127
127
  --limit <n> Results per page (default 10, max 50)
128
128
  --page <n> Page number (default 1)
129
129
  --source <name> all | gutenberg | openlibrary | archive | googlebooks |
130
- pubmed | doaj | librivox (default all)
130
+ pubmed | doaj | librivox | openalex | wikisource |
131
+ europeana | zenodo | otl (default all)
131
132
  --format <fmt> Keep only results offering epub | pdf | txt | html
132
133
  --free-only Keep only results with a verified free download
133
134
  `,
@@ -138,7 +139,8 @@ Download — search, then write verified public-domain books to a folder.
138
139
 
139
140
  --limit <n> Results to consider (default 5, max 50)
140
141
  --source <name> all | gutenberg | openlibrary | archive | googlebooks |
141
- pubmed | doaj | librivox (default all)
142
+ pubmed | doaj | librivox | openalex | wikisource |
143
+ europeana | zenodo | otl (default all)
142
144
  --format <fmt> epub | pdf | txt | html (default: best available —
143
145
  epub > pdf > txt > html)
144
146
  --out <dir> Destination folder (default ./books)
package/src/config.js CHANGED
@@ -42,6 +42,11 @@ export const SOURCES = [
42
42
  'pubmed',
43
43
  'doaj',
44
44
  'librivox',
45
+ 'openalex',
46
+ 'wikisource',
47
+ 'europeana',
48
+ 'zenodo',
49
+ 'otl',
45
50
  ];
46
51
 
47
52
  /** File formats the CLI knows how to download. */