New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

win-pause

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

win-pause

Pause & resume windows processes with Node

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

windows process

FAQs

Package last updated on 06 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts