Get unlimited public & private packages + team-based management with npm Teams.Learn more »

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

11

Version

2.0.0

License

MIT

Unpacked Size

13.1 kB

Total Files

4

Last publish

Collaborators

  • avatar