# simple-status

> simple status manager

Latest version **1.1.1** (published 2015-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-status
pnpm add simple-status
yarn add simple-status
bun add simple-status
```

## 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.1 |
| Published | 2015-06-19 |
| First published | 2015-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Paul Palladino |
| Maintainers | ppalladino |
| Keywords | simple, status, manager |

## Links

- npm: https://www.npmjs.com/package/simple-status
- Repository: https://github.com/ppalladino/simple-status
- Homepage: https://github.com/ppalladino/simple-status#readme
- Issues: https://github.com/ppalladino/simple-status/issues
- npm.io page: https://npm.io/package/simple-status

## Recent versions

- 1.1.1 (latest) — 2015-06-19
- 1.1.0 — 2015-06-18
- 1.0.2 — 2015-06-16
- 1.0.1 — 2015-06-16
- 1.0.0 — 2015-06-16
- 0.0.4 — 2015-06-15
- 0.0.3 — 2015-06-15

## README

# Simple Status

## Installation
```
npm install simple-status --save-dev
```

## Example Usage
```
var SimpleStatus = require('simple-status');

// Initialize with all possible statuses and optional initial current status.
// If no initial status is given, the initial current status will default to
// the first value in the array

var status = new SimpleStatus(['READY', 'STEADY', 'GO'], 'READY');
console.log(status.current);  // 'READY'

// Set status, note, status is given properties equal to statuses

status.set(status.STEADY);
console.log(status.current);  // 'STEADY'

// Setting status to unknown status throw exception

status.set('SOMETHING_UNKNOWN'); // Exception thrown

// Get readonly object of statuses

var readOnlyStatuses = status.getStatuses();
console.log(readOnlyStatuses.READY);  // 'READY'
readOnlyStatuses.set('STEADY'); // Exception thrown


```

## Build

```
webpack
```

## Test

```
karma start karma.config.js
```

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