hardcider
v0.3.0
Published
CLI for quickly generating citations for websites and books
Downloads
5
Maintainers
Readme
hardcider
:beer: Create citations from the command line
Installation
Run the following command to install hardcider
- requires Node.js 8.x and higher
npm install -g hardcider
Usage
hardcider website <url>
- create a website citation from a URLhardcider book <isbn>
- create a book citation from an ISBN-10 or ISBN-13
Example
$ hardcider website --mla https://en.wikipedia.org/wiki/John_Coltrane
Fetching MLA citation...
“John Coltrane.” Wikipedia, Wikimedia Foundation, 24 Oct. 2018, en.wikipedia.org/wiki/John_Coltrane.
Flags
The following flags apply to both the website
and book
commands
--mla
- returns an MLA Formatted Citation (default)--apa
- returns an APA Formatted Citation--chicago
- returns a Chicago Formatted Citation--ieee
- returns an IEEE Formatted Citation--bibtex
- returns an BibTeX Formatted Citation
Thanks
Built with commanderjs, chalk, puppeteer, and citationmachine.net. Open Source under the MIT License.
Note
This implementation uses puppeteer, a headless Chromium browser to navigate through a series of forms on citationmachine.net. It's faster than manually using any citation website I've come across, but it's admittedly a resource-intensive approach.