From 3d4bf9c1066c7bd0f56b87b5df04565418a5d435 Mon Sep 17 00:00:00 2001 From: Kevin Griffin Date: Thu, 27 Dec 2018 17:16:08 -0500 Subject: [PATCH] init --- index.js | 4 ++-- package-lock.json | 13 +++++++++++++ package.json | 6 +++++- test.js | 2 ++ 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 package-lock.json create mode 100644 test.js diff --git a/index.js b/index.js index 1a1da5d..64054ed 100644 --- a/index.js +++ b/index.js @@ -1,11 +1,11 @@ var fileCounter = (function (){ return { count: () => { - console.log("How the heck should I know?"); + console.log("Test!"); } } })(); -export default fileCounter; +module.exports = fileCounter; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..bce4c87 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "grifffilecounter", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "moment": { + "version": "2.23.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.23.0.tgz", + "integrity": "sha512-3IE39bHVqFbWWaPOMHZF98Q9c3LDKGTmypMiTM2QygGXXElkFWIH7GxfmlwmY2vwa+wmNsoYZmG2iusf1ZjJoA==" + } + } +} diff --git a/package.json b/package.json index d1d616d..9320b30 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,9 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Kevin Griffin", - "license": "ISC" + "license": "ISC", + "dependencies": { + "moment": "^2.23.0" + } } + diff --git a/test.js b/test.js new file mode 100644 index 0000000..e2fb48c --- /dev/null +++ b/test.js @@ -0,0 +1,2 @@ +var counter = require('./index'); +counter.count(); \ No newline at end of file