diff options
| author | Leo Goetz <dev@leogtz.de> | 2025-11-06 14:42:01 +0100 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2025-11-06 14:42:01 +0100 |
| commit | 91a6ac10e416dcf2c29b6e37e3dfe19672eb0f84 (patch) | |
| tree | 8edaa0a875fd5a094284e563378db56253b95eb2 | |
inital commit
| -rw-r--r-- | index.js | 9 | ||||
| -rw-r--r-- | package.json | 14 |
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" +} |
