Skip to content

gillstrom/nircmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nircmd

Perform tasks using the nircmd.exe utility.

Examples and documentation can be found here.

Install

$ npm install --save nircmd

Usage

const nircmd = require('nircmd');

nircmd('clipboard set "hey everybody"').then(() => {
	console.log('Copied to clipboard')
});

CLI

$ npm install --global nircmd
$ nircmd --help

	Examples
	  $ nircmd killprocess firefox.exe
	  $ nircmd clipboard set github.com

API

nircmd(input, [options])

Returns a Promise that resolves usually nothing.

input

Required
Type: string or array

Either a string with the command or an array with the command (one argument per value).

options

Type: object

Options to be passed on to child_process.execFile().

nircmd.spawn(input, options)

input

Required
Type: string or array

Either a string with the command or an array with the command (one argument per value).

options

Type: object

Options to be passed on to child_process.spawn().

License

MIT © gillstrom

About

Perform tasks using the nircmd.exe utility.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •