Skip to content

Commit 045d7e7

Browse files
committed
adding nodejs for languages
Adding the nodejs language in the language list. It is a different language to javascript with some server functionality
1 parent 48a07f1 commit 045d7e7

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

public/consolidated/_index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
"lang": "JAVASCRIPT",
3232
"icon": "/icons/javascript.svg"
3333
},
34+
{
35+
"lang": "NODEJS",
36+
"icon": "/icons/nodejs.svg"
37+
},
3438
{
3539
"lang": "PYTHON",
3640
"icon": "/icons/python.svg"

public/consolidated/nodejs.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"categoryName": "Basics",
4+
"snippets": [
5+
{
6+
"title": "Hello, World!",
7+
"description": "Prints \"Hello, World!\" to the console.",
8+
"author": "kruimol",
9+
"tags": [
10+
"nodejs",
11+
"hello-world"
12+
],
13+
"contributors": [],
14+
"code": "console.log(\"Hello, World!\"); // Prints Hello, World! to the console\n"
15+
}
16+
]
17+
}
18+
]

public/icons/nodejs.svg

Lines changed: 1 addition & 0 deletions
Loading

snippets/nodejs/basics/hello-world.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Hello, World!
3+
description: Prints "Hello, World!" to the console.
4+
author: kruimol
5+
tags: nodejs,hello-world
6+
---
7+
8+
```js
9+
console.log("Hello, World!"); // Prints Hello, World! to the console
10+
```

snippets/nodejs/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)