jats-cli 1.0.18 → 1.1.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/dist/convert.js CHANGED
@@ -5,7 +5,10 @@ function makeConvertCLI(program) {
5
5
  const command = new Command('convert')
6
6
  .description('Convert JATS file to MyST mdast json')
7
7
  .argument('[input]', 'The JATS file')
8
- .addOption(new Option('--frontmatter <frontmatter>', 'Treat JATS frontmatter fields as page or project, or ignore if not specified').choices(['page', 'project']))
8
+ .addOption(new Option('--frontmatter <frontmatter>', 'Treat JATS frontmatter fields as page or project')
9
+ .choices(['page', 'project'])
10
+ .default('project'))
11
+ .addOption(new Option('--no-frontmatter', 'Ignore JATS frontmatter'))
9
12
  .addOption(new Option('--no-doi, --no-dois', 'By default, DOIs are used for references when available, to be later resolved against doi.org. This option disables that behavior and creates bibtex entries for citations with DOIs.'))
10
13
  .addOption(new Option('--no-bib, --no-bibtex', 'By default, a bibtex file will be written with referenced citations. This option prevents writing that file'))
11
14
  .action(clirun(jatsConvert, { program, getSession }));
@@ -1 +1 @@
1
- {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../src/download.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAqB5C,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAE9C"}
1
+ {"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../src/download.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AA0B5C,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,QAE9C"}
package/dist/download.js CHANGED
@@ -7,7 +7,7 @@ function makeDownloadCLI(program) {
7
7
  .description('Download JATS from URL or identifier')
8
8
  .argument('<input>', 'URL or other article identifier')
9
9
  .addOption(new Option('-o, --output <output>', 'Output filename or folder'))
10
- .addOption(new Option('--data', 'Attempt to fetch all data associated with JATS XML'))
10
+ .addOption(new Option('--no-data', 'Only attempt to fetch JATS XML, not full data associated with article.'))
11
11
  .addOption(new Option('--listing <listing>', 'Pointer to PMC listing file; if not provided, listing file will be downloaded and cached as needed'))
12
12
  .action(clirun(jatsFetch, { program, getSession }));
13
13
  return command;