We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0884cc1 commit 2868193Copy full SHA for 2868193
eval.js
@@ -32,6 +32,10 @@ const extractFromFile = async (fpath) => {
32
const html = readFileSync(fpath, 'utf8')
33
const art = await extractFromHtml(html)
34
console.log(art)
35
+ if (art) {
36
+ const slug = slugify(art.title)
37
+ writeFileSync(`evaluation/${slug}.html`, art.content, 'utf8')
38
+ }
39
} catch (err) {
40
console.trace(err)
41
}
0 commit comments