(fpath)
| 28 | } |
| 29 | |
| 30 | const extractFromFile = async (fpath) => { |
| 31 | try { |
| 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 | } |
| 42 | } |
| 43 | |
| 44 | const init = (argv) => { |
| 45 | if (argv.length === 3) { |
no test coverage detected
searching dependent graphs…