Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rnmeow/longevity-js
- Owner: rnmeow
- License: mit
- Created: 2024-10-18T15:34:27.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-31T08:00:19.000Z (3 months ago)
- Last Synced: 2024-10-31T08:03:35.406Z (3 months ago)
- Topics: birthday, commonjs, esmodule, helper, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
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)