Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
/ Reflib-CLI Public archive

Command line interface for Reflib

License

Notifications You must be signed in to change notification settings

hash-bang/Reflib-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library is now depreciated in favour of @IEBH/RefLib-Cli


Reflib-CLI

Command line interface for Reflib.

Features

Count the references in a library (and check they are valid)

reflib LibraryIn.xml -c

Convert between formats

reflib LibraryIn.xml -o json >LibraryOut.json

Deduplicate libraries

reflib LibraryIn.xml -x --dedupe >LibraryOut.xml

Query using JSON expressions

reflib LibraryIn.xml -q '{year: "2008"}'

Usage

Usage: app [file...]

Options:

-h, --help                   output usage information
-V, --version                output the version number
-c, --count                  Dont output refs, just output the count (sets `-o count`)
-j, --json                   Output valid JSON (sets `-o json`)
-x, --xml                    Output EndNote XML file (sets `-o endnotexml`)
-o, --output [mode]          Output file format (js, json, endnotexml, count)
-q, --query [expression...]  Query by HanSON expression (loose JSON parsing)
-v, --verbose                Be verbose (also prints a running total if -c is specified)
--dedupe [action]            Deduplicate the library via the sra-dedupe NPM module. Actions are 'remove' (default), 'count' or 'mark' (to set the caption to "DUPE")
--no-color                   Force disable color
--no-progress                Disable progress bars

About

Command line interface for Reflib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published