mirror of
https://github.com/Noratrieb/node-package-manager.git
synced 2026-01-14 15:45:03 +01:00
add example npm project
This commit is contained in:
parent
191bf40f82
commit
3d83579417
6 changed files with 112 additions and 1 deletions
3
testing/.gitignore
vendored
Normal file
3
testing/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
node_modules
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
6
testing/index.js
Normal file
6
testing/index.js
Normal 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
15
testing/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue