# status-record

> 状态记录机

Latest version **1.0.1** (published 2021-11-15) · ISC license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2021-11-15 |
| First published | 2021-11-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 张家瑞 |
| Maintainers | zhangjr0575 |
| Keywords | status, record, 状态机, 记录 |

## Links

- npm: https://www.npmjs.com/package/status-record
- npm.io page: https://npm.io/package/status-record

## Recent versions

- 1.0.1 (latest) — 2021-11-15
- 1.0.0 — 2021-11-15

## README

## Describe

js 状态记录机

## Installation

```
$ npm install status-record
```

## API

```js
import StatusRecord from 'status-record';
// 实例化
const statusRecord = new StatusRecord();
// 访问当前记录器的长度
const length = statusRecord.length;
// 访问当前记录器下标指向的状态
const state = statusRecord.state;
```

-   back() 返回上一条记录
-   forward() 前往下一条记录
-   go(step) 前往相对当前记录的之前/之后记录
-   pushState(state) 向当前记录索引之后插入一条新的记录
-   replaceState(state) 替换当前记录索引的状态

## License

[MIT](LICENSE)

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