Skip to content

rnmeow/longevity-js

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.

Topics

Resources

License

Stars

Watchers

Forks