# nircmd

> Perform tasks using the nircmd.exe utility.

Latest version **2.0.0** (published 2015-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install nircmd
pnpm add nircmd
yarn add nircmd
bun add nircmd
```

Provides the command `nircmd`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-10-06 |
| First published | 2015-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gillstrom |
| Maintainers | gillstrom, kevva |
| Keywords | cli, cli-app, cmd, command-line, nircmd, nircmd.exe, utility, windows |

## Links

- npm: https://www.npmjs.com/package/nircmd
- Repository: https://github.com/gillstrom/nircmd
- Homepage: https://github.com/gillstrom/nircmd#readme
- Issues: https://github.com/gillstrom/nircmd/issues
- npm.io page: https://npm.io/package/nircmd

## Dependencies (3)

- [meow](https://npm.io/package/meow.md) ^3.4.1
- [multi-typeof](https://npm.io/package/multi-typeof.md) ^1.0.0
- [pinkie-promise](https://npm.io/package/pinkie-promise.md) ^1.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2015-10-06
- 1.3.0 — 2015-10-04
- 1.2.1 — 2015-08-04
- 1.2.0 — 2015-08-04
- 1.1.3 — 2015-07-16
- 1.1.2 — 2015-07-15
- 1.1.1 — 2015-07-10
- 1.1.0 — 2015-07-08
- 1.0.2 — 2015-07-08
- 1.0.1 — 2015-07-08
- 1.0.0 — 2015-07-08
- 0.0.0 — 2015-07-08

## README

# nircmd

> Perform tasks using the nircmd.exe utility.


*Examples and documentation can be found [here.](http://www.nirsoft.net/utils/nircmd2.html)*


## Install

```
$ npm install --save nircmd
```


## Usage

```js
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()`](https://nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback).

### 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()`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options).


## License

MIT © [gillstrom](http://github.com/gillstrom)

---
_Source: https://npm.io/package/nircmd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
