# qh-schtasks

> Windows scheduled tasks

Latest version **1.1.0** (published 2020-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install qh-schtasks
pnpm add qh-schtasks
yarn add qh-schtasks
bun add qh-schtasks
```

## 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 | 1.1.0 |
| Published | 2020-04-26 |
| First published | 2020-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matteo Maselli |
| Maintainers | noteon |
| Keywords | schtasks |

## Links

- npm: https://www.npmjs.com/package/qh-schtasks
- Repository: https://github.com/noteon/schtasks
- Homepage: https://github.com/noteon/schtasks#readme
- Issues: https://github.com/daack/schtasks/issues
- npm.io page: https://npm.io/package/qh-schtasks

## Dependencies (2)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.19
- [sudo-prompt](https://npm.io/package/sudo-prompt.md) ^8.1.0

## Recent versions

- 1.1.0 (latest) — 2020-04-26
- 1.0.0 — 2020-01-22
- 1.0.0-beta.1 — 2020-01-22

## README

# schtasks

Windows scheduled tasks

* [Install](#install)
* [How to use it](#example)

<a name="install"></a>
## Install

To install schtasks, simply use npm:

```
npm install schtasks --save
```

<a name="example"></a>
## How to use it

```javascript
const sc = require('schtasks')

await sc.create('TestTask', {
	taskrun: 'C:\\TaskPath\\task.exe',
	schedule: 'WEEKLY',
	days: ['MON', 'TUE'],
	interval: 15,
	starttime: '00:00',
	duration: '24:00'
})

await sc.get('TestTask')

await sc.run('TestTask')

await sc.stop('TestTask')

await sc.update('TestTask', {
	disable: null
})

await sc.destroy('TestTask')

/*
 Available options

 schedule
 modifier
 days
 months
 idletime
 taskname
 taskrun
 starttime
 interval
 endtime
 duration
 startdate
 enddate
 level
 enable
 disable
*/
```

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