summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.js9
-rw-r--r--package.json14
2 files changed, 23 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..36d56ef
--- /dev/null
+++ b/index.js
@@ -0,0 +1,9 @@
+#!/usr/bin/env node
+
+const note = process.argv[2];
+const newNote = {
+ content: note,
+ id: Date.now(),
+};
+
+console.log(newNote);
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..cafb329
--- /dev/null
+++ b/package.json
@@ -0,0 +1,14 @@
+{
+ "name": "intro-node",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "bin": {
+ "note": "./index.js"
+ },
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "",
+ "license": "ISC"
+}