Converting long DOIs to short DOIs

go
console app
Published

December 13, 2024

A simple program written in Go to convert long DOIs in a text file to their short counterparts using the shortDOI service.

Now, getting short DOIs is as simple as:

./short-doi -i ref.bib -o short-doi-ref.bib

all the long DOIs are replaced with their aliases.

Before After
note = {doi: {10.1016/j.cirpj.2020.02.002}},
note = {doi: {10.1016/j.cropro.2019.05.015}},
note = {doi: 10.1016/j.tree.2023.04.010},
note = {doi: {10/ghg846}},
note = {doi: {10/grxgxg}},
note = {doi: 10/nqnv},

The executable and source code are available on GitHub. For more details about how I created the application, see this blog post.