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.
- Host: GitHub
- URL: https://github.com/customcommander/ris
- Owner: customcommander
- License: mit
- Created: 2020-06-20T08:18:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T08:16:36.000Z (over 3 years ago)
- Last Synced: 2025-08-16T16:59:09.832Z (10 months ago)
- Topics: academia, bibliography, citation, mendeley, reference-management, ris-format
- Language: Gherkin
- Homepage: https://customcommander.github.io/ris/manual/
- Size: 1.34 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README



# 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)