UNPKG
crypto-nodes
Version:
latest (1.0.0)
1.0.0
crypto-nodes
/
genericConfig.js
18 lines
(11 loc)
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// const utils = require('./lib/utils');
module
.
exports
=
function
(
RED
) {
function
genericConfig
(
n
) {
RED
.
nodes
.
createNode
(
this
,n);
var
node =
this
;
for
(x
in
n) { node[x] = n[x]; } }
RED
.
nodes
.
registerType
(
"genericConfig"
, genericConfig); }