You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/creating-nodes/first-node.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,16 +19,14 @@ A `package.json` file is used to package it all together as an npm module.
19
19
-[lower-case.html](#lower-casehtml)
20
20
-[Testing your node in Node-RED](#testing-your-node-in-node-red)
21
21
22
-
23
22
### Creating a simple node
24
23
25
24
This example will show how to create a node that converts message payloads to
26
25
all lower-case characters.
27
26
28
27
Ensure you have the recommended LTS version of Node.js installed on your system. As of this writing this is version **LTS 8.x** which includes npm version 5.x.
29
28
30
-
Create a directory where you will develop your code. Within that directory,
31
-
create the following files:
29
+
Create a directory where you will develop your code. Within that directory, create the following files:
32
30
33
31
-`package.json`
34
32
-`lower-case.js`
@@ -67,7 +65,7 @@ to the [packaging guide](packaging).
<p>A simple node that converts the message payloads into all lower-case characters</p>
137
135
</script>
138
-
{% endhighlight %}
136
+
```
139
137
140
138
A node's HTML file provides the following things:
141
139
@@ -167,7 +165,7 @@ For example, if your node is located at `~/dev/node-red-contrib-example-lower-ca
167
165
168
166
This creates a symbolic link to your node module project directory in `~/.node-red/node_modules` so that Node-RED will discover the node when it starts. Any changes to the node's file can be picked up by simply restarting Node-RED.
169
167
170
-
If you are using an older version of npm, you can create a symbolic link manually to your project. To do so:
168
+
If you are using an older version of npm, you can create a symbolic link manually to your project. For example on Mac or linux systems:
0 commit comments