Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

nameday-api

2.0.6 • Public • Published

Official International Name days API library

Name day API library for api.abalin.net

This library makes it easy to send requests towards api.abalin.net API. API provides name days for various countries.

Installation

npm install nameday-api
// OR
yarn add nameday-api

List of supported countries

When using country codes in the library you can use country codes.

  • Country codes
    • bg
    • lt
    • ee
    • lv
    • gr
    • ru
    • at
    • dk
    • fr
    • it
    • sk
    • cz
    • es
    • hr
    • pl
    • us
    • de
    • fi
    • hu
    • se

Usage

Import
const nameday = require("nameday-api");
// OR
import nameday from "nameday-api";
Request name days for today / tomorrow / yesterday
nameday.today();
nameday.tomorrow();
nameday.yesterday();
Request name days for today / tomorrow / yesterday for specific country only
nameday.today("sk");
nameday.tomorrow("at");
nameday.yesterday("de");
Request name days for specific date and for specific country
nameday.specificDay(29, 3, "es");
nameday.specificDay(2, 12, "de");
nameday.specificDay(22, 12, "pl");
nameday.specificDay(2, 12, "hr");
Request name day in country calendar
nameday.searchByName("Jana", "cz");

Keywords

Install

npm i nameday-api

DownloadsWeekly Downloads

16

Version

2.0.6

License

MIT

Unpacked Size

11.3 kB

Total Files

4

Last publish

Collaborators

  • avatar