UNPKG

@d3x0r/sack-gui

Version:

SACK abstraction library exposed to JS to provide low level system services.

11 lines (8 loc) 239 B
import {sack} from "sack.vfs" const nodeTasks = sack.Task.getProcessList( "node" ); for( let task of nodeTasks ) { if( task.args[0].endsWith( "scanner.mjs" ) ){ //console.log( "Found task:", task ); sack.Task.kill( task.id ); } }