MCPcopy
hub / github.com/extractus/article-extractor / init

Function init

eval.js:44–51  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

42}
43
44const init = (argv) => {
45 if (argv.length === 3) {
46 const input = argv[2]
47 const isUrl = isValidUrl(input)
48 return isUrl ? extractFromUrl(input) : existsSync(input) ? extractFromFile(input) : false
49 }
50 return 'Nothing to do!'
51}
52
53init(process.argv)

Callers 1

eval.jsFile · 0.85

Calls 2

extractFromUrlFunction · 0.85
extractFromFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…