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

mnemos-coder

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mnemos-coder

CLI-based coding agent with graph-based execution loop and terminal UI

latest
Source
npmnpm
Version
0.1.53
Version published
Maintainers
1
Created
Source

Calculator Functions

This project provides basic calculator functions implemented in JavaScript.

Functions

add(a, b)

Adds two numbers together.

Parameters:

  • a (number): First number
  • b (number): Second number

Returns:

  • (number): The sum of a and b

multiply(a, b)

Multiplies two numbers.

Parameters:

  • a (number): First number
  • b (number): Second number

Returns:

  • (number): The product of a and b

Usage

const { add, multiply } = require('./calc');

// Example usage
console.log(add(2, 3)); // Output: 5
console.log(multiply(4, 5)); // Output: 20

Running Tests

To run the tests:

node test.js

This will execute the simple tests for both functions and display the results.

Keywords

coding-agent

FAQs

Package last updated on 23 Aug 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