An open API service indexing awesome lists of open source software.

https://github.com/customcommander/ris

Read/write bibliographic records in RIS format.
https://github.com/customcommander/ris

academia bibliography citation mendeley reference-management ris-format

Last synced: 3 months ago
JSON representation

Read/write bibliographic records in RIS format.

Awesome Lists containing this project

README

          

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/customcommander/ris/continuous%20integration)
![npm (scoped)](https://img.shields.io/npm/v/@customcommander/ris)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@customcommander/ris?label=minified%20bundle%20size)

# RIS

```
npm i @customcommander/ris
```

`@customcommander/ris` is a JavaScript library available on NPM that lets you read and write bibliographic records in the [RIS format][].

```javascript
const {read, write} = require('@customcommander/ris');

read(`
TY - JOUR
TI - Foo
ER -
TY - BOOK
TI - Bar
ER -
TY - CHAP
TI - Baz
ER -
`);

//=> [ {TY: ['JOUR'], TI: ['Foo']}
//=> , {TY: ['BOOK'], TI: ['Bar']}
//=> , {TY: ['CHAP'], TI: ['Baz']}]

write([ { "TY": ["JOUR"]
, "TI": ["Hello World!"]}

, { "TY": ["JOUR"]
, "TI": ["Apollo 11"]
, "DA": [{ "year": "1969"
, "month": "07"
, "day": "20"
, "info": "Moon"}]}]);

// => TY - JOUR
// => TI - Hello World!
// => ER -
// =>
// => TY - JOUR
// => TI - Apollo 11
// => DA - 1969/07/20/Moon
// => ER -
// =>
```

[RIS format]: https://en.wikipedia.org/wiki/RIS_(file_format)