codemeta.json
is the standard name (codemeta/codemeta#81)- the possible fields are listed here: The CodeMeta Project
- it’s a JSON file.
- Essentially
doi2bib(JSON.parse(String(read("codemeta.json")))["citation"])
using thedoi2bib
function I posted above, at least in the minimal case of a singlecitation
given by a DOI, although technically thecitation
field is a URL so you’d need split out the part afterhttp://dx.doi.org/
first … you could also support other kinds of URLs as I mentioned above. (Thecitation
field can also be an array.)
I agree that their documentation is abysmal, though.