-
Notifications
You must be signed in to change notification settings - Fork 0
A helper function that calculates one's age according to their birthday.
License
rnmeow/longevity-js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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, 2025, Yu-huan Kuo. Licensed under MIT.
***
18 OCT 2024 (LAST REVISED: 14 FEB 2025)
About
A helper function that calculates one's age according to their birthday.