Skip to content

Commit

Permalink
adding nodejs for languages
Browse files Browse the repository at this point in the history
Adding the nodejs language in the language list.
It is a different language to javascript with some server functionality
  • Loading branch information
kruimol committed Jan 3, 2025
1 parent 48a07f1 commit 045d7e7
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/consolidated/_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"lang": "JAVASCRIPT",
"icon": "/icons/javascript.svg"
},
{
"lang": "NODEJS",
"icon": "/icons/nodejs.svg"
},
{
"lang": "PYTHON",
"icon": "/icons/python.svg"
Expand Down
18 changes: 18 additions & 0 deletions public/consolidated/nodejs.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
1 change: 1 addition & 0 deletions public/icons/nodejs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions snippets/nodejs/basics/hello-world.md
Original file line number Diff line number Diff line change
@@ -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
```
1 change: 1 addition & 0 deletions snippets/nodejs/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 045d7e7

Please sign in to comment.