# is_session_locked

> Detect whether the Windows user session is locked.

Latest version **0.0.2** (published 2017-09-29) · BSD-3-Clause license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-09-29 |
| First published | 2017-09-29 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Maintainers | kljh |

## Links

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

## Recent versions

- 0.0.2 (latest) — 2017-09-29
- 0.0.1 — 2017-09-29

## README

# is_session_locked

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]

Detect whether the Windows user session is locked..

Typically used to decide whether the computer can be used for backgoround tasks.

## Installation

```sh
npm install is_session_locked
```

## API

```js
var isl = require('is_session_locked');

setInterval(
    function() { console.log("is_session_locked", isl.is_session_locked()); }, 
    2000);
```

### is_session_locked()

Returns `true` if no user is logged-in or if the session is locked.

Return `false` if the user is logged-in and the session is in use.


## License

[BSD-3-Clause](LICENSE)

[npm-image]: https://img.shields.io/npm/v/is_session_locked.svg
[npm-url]: https://npmjs.org/package/is_session_locked
[downloads-image]: https://img.shields.io/npm/dm/is_session_locked.svg
[downloads-url]: https://npmjs.org/package/is_session_locked

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