UNPKG
indexifier
Version:
latest (3.3.0)
3.3.0
3.2.2
3.2.1
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.0.0
1.0.0
Generate an index from a directory
github.com/joscha/indexifier
joscha/indexifier
indexifier
/
wrapHtml.js
18 lines
(17 loc)
•
323 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = (content, title) => `
<!doctype
html
>
<
html
>
<
head
>
<
meta
charset
=
"UTF-8"
>
<
title
>
${title}
</
title
>
<
style
>
* {
font-family
: monospace; }
</
style
>
</
head
>
<
body
>
<
pre
>
${content}
</
pre
>
</
body
>
</
html
>
`;