UNPKG
commonmark
Version:
latest (0.31.2)
0.31.2
0.31.1
0.31.0
0.30.0
0.29.3
0.29.2
0.29.1
0.29.0
0.28.1
0.28.0
0.27.0
0.26.0
0.25.1
0.25.0
0.24.0
0.23.0
0.22.1
0.22.0
0.21.0
0.20.0
0.19.0
0.18.2
0.18.1
0.17.1
0.17.0
0.16.0
0.15.0
0.12.0
0.9.0
a strongly specified, highly compatible variant of Markdown
commonmark.org
jgm/commonmark.js
commonmark
/
bench
/
string.js
6 lines
(5 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
var
fs =
require
(
'fs'
);
var
benchfile = process.
argv
[
2
];
var
contents = fs.
readFileSync
(benchfile,
'utf8'
);
var
name = benchfile.
replace
(
/samples\//
,
''
).
replace
(
/\.md/
,
''
);
console
.
log
(
JSON
.
stringify
(name) +
': '
+
JSON
.
stringify
(contents) +
','
);