lib/daemon.js
Function daemon
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function daemon(parentPid, pathToLogFile) {
process.stdout.write(
`ImportJS (v${version()}) DAEMON active. Logs will go to: ${pathToLogFile}\n`,
);
if (parentPid) {