Skip to content

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

Notifications You must be signed in to change notification settings

jkb-kt/nameday-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published