New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

age-generator

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

age-generator

A NodeJS application that generates random age

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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

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

Usage

  • Start the server:
    node index.js
    
  • The server will start on port 3600. You can modify the port in the index.js file if needed.
  • 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.

Keywords

age-gen

FAQs

Package last updated on 29 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts