1.0.1 • Published 6 months ago
simple-math-functions v1.0.1
simple-math-functions
simple-math-functions is an npm package that allows you to add or subtract numbers
Installation
Node.js
$ npm install simple-math-functions
Frontend
<script src="https://cdn.jsdelivr.net/npm/simple-math-functions@1.0.0/index.js"></script>
Usage
Frontend
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/simple-math-functions@1.0.0/index.js"></script>
<script>
math.add(1, 2, 3, 4); // => 10
math.subtract(5, 1, -10, 5); // => 9
</script>
</head>
</html>
Node.js
const math = require('simple-math-functions');
math.add(1, 2, 3, 4); // => 10
math.subtract(5, 1, -10, 5); // => 9