Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

customcommander/ris

Repository files navigation

GitHub Workflow Status npm (scoped) npm bundle size (scoped)

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.

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 - 
// =>

AltStyle によって変換されたページ (->オリジナル) /