1.0.5 • Published 8 months ago

@gamelord2011/age-js v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
8 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

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.2

8 months ago