Nevnap (névnap) is a minimalist JavaScript library that displays hungarian namedays.
- 🔌 No dependencies
↔️ No XHR- 📦 Only 13.9kB (including names)
The names used in this package are from Wikipedia.
npm i nevnap
or
yarn add nevnap
<!-- CDN example (unpkg) -->
<script src="https://unpkg.com/nevnap@latest"></script>
<script>
nevnap.today();
</script>
Getting today's nameday(s).
import { today } from 'nevnap';
today(); // ['Zsuzsanna', 'Eliza', 'Konrád']
Getting tomorrow's nameday(s).
import { tomorrow } from 'nevnap';
tomorrow(); // ['Aladár', 'Álmos', 'Leó']
Getting nameday(s) on a specific date.
import { on } from 'nevnap';
on('04-22'); // ['Csilla', 'Noémi', 'Kájusz', 'Noé']
Getting date(s) to a specific name.
import { to } from 'nevnap';
to('Csilla'); // ['04-22', '08-10']