1.0.5 • Published 12 months ago

@gamelord2011/age-js v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Age.js

This is a simple NextJs component that calculates your age.

Installation

Install the package via npm:

npm install @gamelord2011/age-js

pnpm:

pnpm i @gamelord2011/age-js

or yarn:

yarn add @gamelord2011/age-js

Usage

Import the Age component and use it in your NextJS application:

"use-client";

import Age from "@gamelord2011/age-js";

function App() {
  return <Age />;
}

export default App;

Environment Variable

Set the BIRTHDATE environment variable in the following format:

NEXT_PUBLIC_BIRTHDATE = '<your birthdate here>'

Or just pass the birthdate argument through the component.

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.2

12 months ago