math-wizard
v1.0.11
Published
a package that enables you to add numbers
Downloads
1,129
Maintainers
Readme
math-wizard
math-wizard is a tiny TypeScript-based npm package for performing simple numeric addition. It is designed to be easy to install and use in modern ESM-compatible JavaScript and TypeScript projects.
Features
- Add two numbers with a single function.
- TypeScript-friendly API with type declarations.
- ESM-compatible package entry point.
- Minimal dependency footprint.
- Simple installation and usage.
Installation
npm install math-wizardUsage
import { add } from "math-wizard";
const result = add(2, 3);
console.log(result); // 5Examples
Basic addition
import { add } from "math-wizard";
console.log(add(10, 15));
// Output: 25Using the function in a TypeScript file
import { add } from "math-wizard";
function sumValues(a: number, b: number) {
return add(a, b);
}
console.log(sumValues(4, 7));
// Output: 11API
add(a, b)
a: numberb: number- returns: number
Adds two numeric values and returns the sum.
License
MIT
🔍 Browse the source: github.com/moe-moaid/math-wizard
🐛 Report an issue: github.com/moe-moaid/math-wizard/issues
