1.0.5 • Published 1 year ago

@gamelord2011/age-js v1.0.5

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

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.2

1 year ago