(argv)
| 42 | } |
| 43 | |
| 44 | const 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 | |
| 53 | init(process.argv) |
no test coverage detected
searching dependent graphs…