0.1.0 • Published 3 years ago

currentyear-api-wrapper v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

CurrentYear API wrapper

npm coverage report bundle size

Get the current year for either UTC or specific timezone(s).


Getting started

NPM

npm i currentyear-api-wrapper@latest

CDN (no installation required)

<script src="https://unpkg.com/currentyear-api-wrapper"></script>

Usage

You will most likely be using the CurrentYearService which you can import as:

import { CurrentYearService } from "currentyear-api-wrapper";

const service = new CurrentYearService();
service.getCurrentYear("America/New_York").then(console.log); // e.g. "2022"

Reference


In the words of the wise Adam Greenough,

Where is the NPM package?

Don't tempt me.

Well, I was tempted.

0.1.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago