UNPKG
nodry
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A CLI tool and Node.js library that warns about repetitive code to help you stay DRY.
nodry
/
test.js
22 lines
(16 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// example.js
function
greet
(
) {
console
.
log
(
"Hello!"
); }
function
sum
(
a, b
) {
return
a + b; }
function
repeatBlock
(
) {
let
x =
10
;
let
y =
20
;
if
(x < y) {
console
.
log
(
"x is less than y"
); } }
// Upprepade rader utanför funktioner
console
.
log
(
"Start"
);