diff --git a/public/consolidated/_index.json b/public/consolidated/_index.json index 6f82a67a..d57254bb 100644 --- a/public/consolidated/_index.json +++ b/public/consolidated/_index.json @@ -31,6 +31,10 @@ "lang": "JAVASCRIPT", "icon": "/icons/javascript.svg" }, + { + "lang": "NODEJS", + "icon": "/icons/nodejs.svg" + }, { "lang": "PYTHON", "icon": "/icons/python.svg" diff --git a/public/consolidated/nodejs.json b/public/consolidated/nodejs.json new file mode 100644 index 00000000..19236a41 --- /dev/null +++ b/public/consolidated/nodejs.json @@ -0,0 +1,18 @@ +[ + { + "categoryName": "Basics", + "snippets": [ + { + "title": "Hello, World!", + "description": "Prints \"Hello, World!\" to the console.", + "author": "kruimol", + "tags": [ + "nodejs", + "hello-world" + ], + "contributors": [], + "code": "console.log(\"Hello, World!\"); // Prints Hello, World! to the console\n" + } + ] + } +] \ No newline at end of file diff --git a/public/icons/nodejs.svg b/public/icons/nodejs.svg new file mode 100644 index 00000000..0481f9f8 --- /dev/null +++ b/public/icons/nodejs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/snippets/nodejs/basics/hello-world.md b/snippets/nodejs/basics/hello-world.md new file mode 100644 index 00000000..2bef18ae --- /dev/null +++ b/snippets/nodejs/basics/hello-world.md @@ -0,0 +1,10 @@ +--- +title: Hello, World! +description: Prints "Hello, World!" to the console. +author: kruimol +tags: nodejs,hello-world +--- + +```js +console.log("Hello, World!"); // Prints Hello, World! to the console +``` diff --git a/snippets/nodejs/icon.svg b/snippets/nodejs/icon.svg new file mode 100644 index 00000000..0481f9f8 --- /dev/null +++ b/snippets/nodejs/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file