# atm-states

> ATM States Service

Latest version **0.7.0** (published 2017-12-05) · LGPL-2.1 license · 0 weekly downloads

## Install

```sh
npm install atm-states
pnpm add atm-states
yarn add atm-states
bun add atm-states
```

## 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.7.0 |
| Published | 2017-12-05 |
| First published | 2017-10-10 |
| Weekly downloads | 0 |
| License | LGPL-2.1 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tim Gabets |
| Maintainers | timgabets |
| Keywords | ATM, States |

## Links

- npm: https://www.npmjs.com/package/atm-states
- Repository: https://github.com/timgabets/atm-states
- Homepage: https://github.com/timgabets/atm-states#readme
- Issues: https://github.com/timgabets/atm-states/issues
- npm.io page: https://npm.io/package/atm-states

## Dependencies (2)

- [semver](https://npm.io/package/semver.md) ^5.4.1
- [atm-state-levels](https://npm.io/package/atm-state-levels.md) ^1.0.6

## Recent versions

- 0.7.0 (latest) — 2017-12-05
- 0.6.5 — 2017-12-05
- 0.6.4 — 2017-12-05
- 0.6.3 — 2017-12-05
- 0.6.2 — 2017-12-05
- 0.6.1 — 2017-12-05
- 0.6.0 — 2017-12-05
- 0.5.2 — 2017-12-04
- 0.5.1 — 2017-12-04
- 0.5.0 — 2017-12-04
- 0.4.2 — 2017-12-04
- 0.4.1 — 2017-11-29
- 0.4.0 — 2017-11-29
- 0.3.1 — 2017-11-28
- 0.3.0 — 2017-11-28
- … 14 more at https://npm.io/package/atm-states/versions

## README

# atm-states

![Travis CI build badge](https://travis-ci.org/timgabets/atm-states.svg?branch=master)
[![Maintainability](https://api.codeclimate.com/v1/badges/e01eda6d8b5e0fb210fe/maintainability)](https://codeclimate.com/github/timgabets/atm-states/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/e01eda6d8b5e0fb210fe/test_coverage)](https://codeclimate.com/github/timgabets/atm-states/test_coverage)

ATM States Service implementation, used by [Electron ATM](https://github.com/timgabets/electron-atm) and [ATM State Navigator](https://github.com/timgabets/states-navigator) applications. The module may be used for NDC ATM states parsing and processing. 

## To use:
```javascript
const StatesService = require('atm-states');

var s = new StatesService();
s.getEntry('000ABCDEFGHIJKLMNOPQRSTUVWXY', 1)
> 'A'
s.getEntry('000A001002003004005006007008', 2)
> '001'
s.parseState('000A870500128002002002001127')
>{ description: 'Card read state',
  number: '000',
  type: 'A',
  screen_number: '870',
  good_read_next_state: '500',
  error_screen_number: '128',
  read_condition_1: '002',
  read_condition_2: '002',
  read_condition_3: '002',
  card_return_flag: '001',
  no_fit_match_next_state: '127',
  states_to: [ '500', '127' ] }

```

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