UNPKG

ibowankenobi-i-pv

Version:

Interactive Protein Sequence VIsualization/Viewer - Interactive Circos

54 lines (53 loc) 1.14 kB
Object.defineProperties( exports, { select: { enumerable: true, configurable: true, writable: true, value: function(process){ return { on: function(evt, handler){ process.on(evt, handler); return this; } } } }, signalReceiver: { enumerable: true, configurable: true, writable: true, value:(signal) => { console.log(`Received ${signal}`); } }, catcher: { enumerable: true, configurable: true, writable: true, value: err => { console.log("Execution failed."); console.log(err); // do not just log the message, stringified err has row/col values //process.exitCode = 1; - this will not terminate gracefully coz of bash's tail anyway process.exit(1); } }, log: { enumerable: true, configurable: true, writable: true, value: (...args) => { args.unshift("\u02C5".repeat(80)); //down caret args.push("\u02C4".repeat(80)); //up caret console.log("\n"); args.forEach(d => d .toString() .split(/\n|\r\n/gi) .forEach(dd => console.log("> " + dd)) ); console.log("\n"); } } } );