1.0.3 • Published 5 years ago

win-pause v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Win Pause

Pause & resume windows processes with Node

A node wrapper for PsSuspend

npm version Build Status Coverage Status

ATTENTION: By running this module you'll be be programmatically accepting the EULA of PsSuspend. Please be sure to read the Eula here before proceeding.

Supported OS

Client: Windows Vista and higher.
Server: Windows Server 2008 and higher.

Installation

Install WinPause via NPM:

npm i win-pause

Usage

If you already have PsSuspend on the machine:

import { pause, resume } from 'win-pause';

const binPath = 'my-path/pssuspend.exe';
const pid = 9020;

pause(pid, binPath)
    .then(() => console.log('successfully paused!'));

resume(pid, binPath)
    .then(() => console.log('successfully resumed!'));

Otherwise:

import { pause, resume, downloadPsSuspend } from 'win-pause';

const pid = 9020;

downloadPsSuspend()
    .then(() => {
        pause(pid)
            .then(() => console.log('successfully paused!'));
        
        resume(pid)
            .then(() => console.log('successfully resumed!'));
    })

Test

npm test
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago