age-generator

1.0.4 • Public • Published

Age Generator

Age Generator is a simple Node.js application that generates a random age and logs it to the console.

Features

  • Generates a random age between 1 and 100.
  • Runs a lightweight Express server.

Installation

  1. Clone this repository or download the source code.
  2. Navigate to the project directory and install dependencies:
    npm install age-generator

Usage

  1. Start the server:
    node index.js
  2. The server will start on port 3600. You can modify the port in the index.js file if needed.
  3. To generate a random age, call the getRandomAge function in your code or modify the application to expose it via an API endpoint.
    const getRandomAge = require('age-generator');
    
    console.log(getRandomAge)

Scripts

  • Test: Run the following command to execute the test script (currently not implemented):
    npm test

Dependencies

  • Express: A minimal and flexible Node.js web application framework.

Author

Adedeji Samuel

License

This project is licensed under the ISC License.

Package Sidebar

Install

npm i age-generator

Weekly Downloads

14

Version

1.0.4

License

ISC

Unpacked Size

1.82 kB

Total Files

3

Last publish

Collaborators

  • adedeji06