Skip to content

revdave33/lectionary

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lectionary

Build Status Dependencies Status

The Revised Common Lectionary provides a three year cycle of Scripture readings for Christian churches that use it. This module does not provide the actual scripture readings, but it calculates the names and year of the Sundays and other days celebrated in the lectionary.

This provides the calculation of the basic Lectionary services accepted by almost all of the churches that use the RCL. There are some non-Sunday days that are extensions of the basic dates that are not currently calculated.

Example

var lectionary = require('lectionary');
var lectionaryDates = lectionary(2014, 3);
console.dir(lectionaryDates);

[ 
  {
    "date": "Sun Apr 06 2014 00:00:00 GMT+0000 (GMT)",
    "lectionaryYear": "A",
    "lectionaryShortName": "Lent 5",
    "lectionaryLongName": "Fifth Sunday of Lent"
  },
  {
    "date": "Sun Apr 13 2014 00:00:00 GMT+0000 (GMT)",
    "lectionaryYear": "A",
    "lectionaryShortName": "Lent 6",
    "lectionaryLongName": "Sixth Sunday of Lent"
  } 
 
]

Methods

var lectionary = require('lectionary')

lectionary(year, month)

NOTE: When providing the month, it follows the Javascript Date standard. January is 0, December is 11.

Returns an array with the lectionary days for a given month. If the month is not provided will provide an array for the entire year.

Each item in the array is a json object providing the date, lectionaryYear, lectionaryShortName, and lectionaryLongName.

Install

With npm do:

npm install lectionary

License

MIT

Thanks

About

Calculates Sunday names according to the Revised Common Lectionary.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.0%
  • Makefile 1.0%