GithubHelp home page GithubHelp logo

wfwalker / lectionary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revdave33/lectionary

1.0 1.0 0.0 70 KB

Calculates Sunday names according to the Revised Common Lectionary.

License: Other

JavaScript 99.27% Makefile 0.73%

lectionary's Introduction

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

lectionary's People

Contributors

gudmundur avatar revdave33 avatar wfwalker avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.