Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nameday-api with all npm packages installed. Try it out:

var namedayApi = require("nameday-api")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nameday-api v2.0.0

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

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");
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free