Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading