npm

Need private packages and team management tools?Check out npm Orgs. »

nameday-api

2.0.0 • 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

List of supported countries

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

  • Country codes
    • at
    • dk
    • fr
    • it
    • sk
    • cz
    • es
    • hr
    • pl
    • us
    • de
    • fi
    • hu
    • se

Usage

Import
const nameday = require("nameday-api").default;
// 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

37

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability