Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rnmeow/longevity-js

A helper function that calculates one's age according to their birthday.
https://github.com/rnmeow/longevity-js

birthday commonjs esmodule helper javascript typescript

Last synced: 3 months ago
JSON representation

A helper function that calculates one's age according to their birthday.

Awesome Lists containing this project

README

        

longevity-js
============

This is a helper function that calculates one's age according to their birthday.

For development, use Node.js v20, newer or maintaining LTS versions.
This package uses tsup for bundling.

* Usage

Provides ESM and CJS format, targeting ES2019.
You can simply do:

import { calcAge } from 'longevity-js'

to import as a ES module, and

const { calcAge } = require('longevity-js')

to import as a CommonJS module.

* License

(C) 2024, Connor Kuo, licensed under MIT.

***

18 OCT 2024 (LAST REVISED: 19 OCT)