test-my-npm-fey
Version:
Test my npm package
30 lines (22 loc) • 452 B
JavaScript
const { greet } = require('./tools/greet');
const aNewFunction = () => {
return 'A new Function!';
};
module.exports = {
count(num, num2, method) {
if (method === "ADD") {
return num + num2;
}
if (method === "SUB") {
return num - num2;
}
if (method === "MULT") {
return num * num2;
}
},
greet,
aNewFunction,
test() {
return 'Testing a new function';
},
};