orthodox-periods

3.0.0 • Public • Published

Description

Orthodox Christian Old & New Calendar Pascha, feast day, and periods calculator. Determines Pascha date and all the fixed and moveable feasts and fasts based on that date.

Download the package from npm: https://bitbucket.org/anothradam/orthodox-periods

Installation

npm install orthodox-periods --save

Usage:

var OrthodoxPeriods = require('orthodox-periods');
var orthodoxPeriods = new OrthodoxPeriods();

Periods

// Get all feasts and fasts for the year
orthodoxPeriods.dates.getForYear({year:"2016",calendar:'new'});

//Get period
orthodoxPeriods.periods.getPeriodsForDate({date:"6-29-16",calendar:'new'})
    .then(console.log,console.log);

// Get week after pentecost
orthodoxPeriods.periods.getWeekAfterPentecost({date:"6-29-16",calendar:'new'})
    .then(console.log,console.log);

// Week after pascha
orthodoxPeriods.periods.getWeekAfterPascha({date:"5-29-16",calendar:'new'})
    .then(console.log,console.log);

Fasts

// Get all fasts
orthodoxPeriods.fasts.getAll({date:"6-29-16",calendar:'new'})
    .then(console.log,console.log);

// Is fast day
orthodoxPeriods.fasts.isFastDay({date:"6-30-16",calendar:'new'})
    .then(console.log,console.log);

//Is fast free period
orthodoxPeriods.fasts.isFastFreePeriod({date:"5-12-16",calendar:'new'})
    .then(console.log,console.log);

Forefeasts,Feasts,Afterfeasts,Apodosis

// Get all forefeasts
orthodoxPeriods.forefeasts.getForYear({year:"2016",calendar:'new'})
    .then(console.log,console.log);

// GEt feast date by name slug
orthodoxPeriods.feasts.getFeastDateByNameSlug({year:"2016",calendar:'new',feastNameSlug:"pentecost"})
    .then(console.log,console.log);

// Get the type of feast by its name slug
orthodoxPeriods.feasts.getType({feastNameSlug:"presentationTheotokos"})
    .then(console.log,console.log);

// Get the dates for all the feasts in a given year
orthodoxPeriods.feasts.getForYear({year:"2016",calendar:'new'})
    .then(console.log,console.log);

// Get all afterfeasts for the given year
orthodoxPeriods.afterfeasts.getForYear({year:"2016",calendar:'new'})
    .then(console.log,console.log);

// Get all apodosis for the given year
orthodoxPeriods.apodosis.getForYear({year:"2016",calendar:'new'})
    .then(console.log,console.log);

Great Lent

// Determine if this date is in Great Lent
orthodoxPeriods.greatlent.is({date:"3-15-16",calendar:'new'})
    .then(console.log,console.log);

// Get the week of great lent
orthodoxPeriods.greatlent.getWeekOf({date:"5-30-16",calendar:'new'})
    .then(console.log,console.log);

Color

 //Get color by date
orthodoxPeriods.color.getByDate({date:"6-19-16",calendar:'new'})
    .then(console.log,console.log);

Tones

 //Get the tone by date
orthodoxPeriods.tones.getByDate({date:"4-8-16",calendar:'new'})
    .then(console.log,console.log);

 //Get the tone tutor file link by tone
var link = orthodoxPeriods.tones.getToneTutorFilesLink({tone:"1"});
console.log(link)
    .then(console.log,console.log);

WeeklyCycle

//Get the weekly cycle data by date
orthodoxPeriods.weeklycycle.getByDate({date:"7-2-16"})
    .then(console.log,console.log);

Gospels

// Get all Gospel entries
orthodoxPeriods.gospels.getAll()
    .then(console.log,console.log);
    
// Get the gospel for a date
orthodoxPeriods.gospels.getByDate({date:"7-2-16", calendar: "new"})
    .then(console.log,console.log);
    
// Get all Gospel entries
orthodoxPeriods.gospels.getSundayMatinsGospel({date:"7-2-16", calendar: "new", weekAfterPentecost: 40})
    .then(console.log,console.log);

// getByDayAndWeekAfterPentecost
orthodoxPeriods.gospels.getByDayAndWeekAfterPentecost({weekAfterPentecost:10,dayOfWeek:3})
    .then(console.log,console.log);

// getByDayAndWeekAfterPascha
orthodoxPeriods.gospels.getByDayAndWeekAfterPascha({weekAfterPascha:1,dayOfWeek:1})
    .then(console.log,console.log);

//getByFixedDate
orthodoxPeriods.gospels.getByFixedDate({month:11,dayOfMonth:1})
    .then(console.log,console.log);

// getByEothina -- Gets the resurrection Gospel
orthodoxPeriods.gospels.getByEothina({service:'eothina 4'})
    .then(console.log,console.log);

//getBySection
orthodoxPeriods.gospels.getBySection({section:'mid 37'})
    .then(console.log,console.log);    
    
//Lukan Jump determination
orthodoxPeriods.gospels.isInLukanJump({date:"7-2-16", calendar: "new")
    .then(console.log,console.log);

Epistles

//getByDate
orthodoxPeriods.epistles.getByDate({date: "12-1-2021"})
    .then(console.log,console.log);

// Get all Epistle entries
orthodoxPeriods.epistles.getAll()
    .then(console.log,console.log);

// getByDayAndWeekAfterPentecost
orthodoxPeriods.epistles.getByDayAndWeekAfterPentecost({weekAfterPentecost:10,dayOfWeek:3})
    .then(console.log,console.log);

// getByDayAndWeekAfterPascha
orthodoxPeriods.epistles.getByDayAndWeekAfterPascha({weekAfterPascha:1,dayOfWeek:1})
    .then(console.log,console.log);

//getByFixedDate
orthodoxPeriods.epistles.getByFixedDate({month:11,dayOfMonth:1})
    .then(console.log,console.log);

// getByService -- Gets by service
orthodoxPeriods.epistles.getByService({service:'efhelion-4'})
    .then(console.log,console.log);

//getBySection
orthodoxPeriods.epistles.getBySection({section:'86'})
    .then(console.log,console.log);

Period keys/slugs

pascha
publicanPharisee
triodion
sunProdigalSon
sunLastJudgementMeatfare
meatfare
cheesefare
sunCheesefareCastingAdam
forgivenessSunday
firstWeekGreatLent
greatLent
holyWeek
palmSunday
afterfeastPascha
apodosisPascha
brightWeek
thomasSunday
pentecost
trinityWeek
afterfeastPentecost
apodosisPentecost
pentecostarion
allSaints
samaritanWoman
forefeastAscension
ascension
afterfeastAscension
apodosisAscension
forefeastNativity
nativity
synaxisTheotokos
circumcision
afterfeastNativity
apodosisNativity
nativityFast
forefeastTheophany
theophany
afterfeastTheophany
apodosisTheophany
forefeastPresentationChrist
presentationChrist
afterfeastPresentationChrist
apodosisPresentationChrist
forefeastAnnunciation
annunciation
apostlesFast
feastPeterPaul
forefeastTransfiguration
transfiguration
afterfeastTransfiguration
apodosisTransfiguration
dormitionFast
forefeastDormition
dormition
afterfeastDormition
apodosisDormition
beheadingBaptist
forefeastNativityTheotokos
nativityTheotokos
afterfeastNativityTheotokos
apodosisNativityTheotokos
forefeastExaltationCross
exaltationCross
afterfeastExaltationCross
apodosisExaltationCross
protectionTheotokos
forefeastPresentationOfTheotokos
presentationTheotokos
afterfeastPresentationTheotokos
apodosisPresentationTheotokos

Contributors

Adam Gedney
http://orthodoxquoteoftheday.com
http://orthodoxchurchservices.com

License

MIT

Package Sidebar

Install

npm i orthodox-periods

Weekly Downloads

0

Version

3.0.0

License

none

Unpacked Size

2.12 MB

Total Files

12

Last publish

Collaborators

  • adamgedney