npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

orthodox-periods

v3.0.0

Published

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. Also has calculators for vestment color by date and tone by date.

Downloads

29

Readme

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