add example npm project

This commit is contained in:
nora 2022-05-14 14:02:50 +02:00
parent 191bf40f82
commit 3d83579417
6 changed files with 112 additions and 1 deletions

3
testing/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
node_modules
package-lock.json
yarn.lock

6
testing/index.js Normal file
View file

@ -0,0 +1,6 @@
const isEven = require('is-even');
const isOdd = require('is-odd');
const isEvenOrOdd = (x) => isEven(x) || isOdd(x);
console.log(isEvenOrOdd(5));

15
testing/package.json Normal file
View file

@ -0,0 +1,15 @@
{
"name": "testing",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"is-even": "^1.0.0",
"is-odd": "^3.0.1"
}
}