package doi2bib

  1. Overview
  2. Docs
Small CLI to get a bibtex entry from a DOI, an arXiv ID or a PubMed ID

Install

Dune Dependency

Authors

Maintainers

Sources

doi2bib-0.4.0.tbz
sha256=7554267255c77b2e7fd14dff54f0b21b1e8bf8cde95a4e20177b7a2be36d6d97
sha512=b5073b8ee009ddc429e81bcd6f92ab3765e253a48b0b5963d56be8d2e908967e28800f86354855be711607754fb12efa099078e6e5a743b43a21dea80f6dca80

Description

Published: 02 Apr 2021

README

doi2bib

Small CLI to get a bibtex entry from a DOI, an arXiv ID or a PubMed ID.

Usage:

$ doi2bib --help=plain
NAME
   doi2bib - A little CLI tool to get the bibtex entry for a given DOI,
   arXiv or PubMed ID.

SYNOPSIS
    doi2bib [OPTION]... [ID]

ARGUMENTS
    ID  A DOI, an arXiv ID or a PubMed ID. The tool tries to automatically
        infer what kind of ID you are using. You can force the cli to
        lookup a DOI by using the form 'doi:ID' or an arXiv ID by using
        the form 'arXiv:ID'. PubMed IDs always start with 'PMC'.

OPTIONS
    --help[=FMT] (default=auto)
        Show this help in format FMT. The value FMT must be one of `auto',
        `pager', `groff' or `plain'. With `auto', the format is `pager` or
        `plain' whenever the TERM env var is `dumb' or undefined.

    --version
        Show version information.

EXIT STATUS
    doi2bib exits with the following status:

    0   on success.

    124 on command line parsing errors.

    125 on unexpected internal errors (bugs).

BUGS
    Report bugs to https://github.com/mseri/doi2bib/issues

It will output the bibtex entry, using the published details when possible.

Examples of use (the bibtex entry is printed on standard output):

$ doi2bib 10.1007/s10569-019-9946-9
$ doi2bib doi:10.4171/JST/226
$ doi2bib arXiv:1609.01724
$ doi2bib 1902.00436
$ doi2bib PMC2883744

Each release comes with attached binaries for windows, mac and linux. If you want to build the package yourself, the most immediate way is by running

$ opam pin add doi2bib https://github.com/mseri/doi2bib.git
$ opam install doi2bib

To run the tests, clone this repository and from of the root of the project run

$ opam install --deps-only .    # first time only
$ dune runtest -p doi2bib

API references:

Dependencies (12)

  1. tls-lwt < "1.0.0"
  2. tls >= "0.12.0" & < "0.16"
  3. uri >= "4.0"
  4. bigstringaf >= "0.2.0"
  5. lwt >= "5.3.0"
  6. ezxmlm >= "1.1.0"
  7. decompress >= "1.3.0"
  8. cmdliner >= "1.0.0"
  9. cohttp-lwt-unix >= "2.5.0"
  10. astring >= "0.8.0"
  11. ocaml >= "4.08"
  12. dune >= "2.7"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.