0.2.0 • Published 6 years ago

namnsdag v0.2.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Namnsdag

Simple module for getting today's name.

API:

//browser usage (non-webpack): <script src="namnsdag.min.js"></script>

var namnsdag = require('namnsdag')

namnsdag.today() //returns the name(s) of the day in an array. If no names are available on this day (due to holiday), returns string with the holiday's name.

namnsdag.date(month, day) //return name(s) on this date. Month between 1 and 12, day between 1 and 30. returns undefined if date not found

namnsdag.date(dateObject) //return name(s) on this date. returns undefined if date not found

namnsdag.greeting() //Grattis Björn på din namnsdag!, Grattis Amanda och Rasmus på er namnsdag! Idag är det Julafton (inga namnsdagar).

Licence

MIT