UNPKG
heredoc
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
multiline strings for javascript
github.com/jden/heredoc
jden/heredoc
heredoc
/
sample.js
14 lines
(13 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var
heredoc =
require
(
'./index'
)
var
str =
heredoc
(
function
(
) {
/* within this comment block, any text will be treated as pre-formatted multiline text (kinda like html <pre>) */
})
console
.
log
(str)