# undo-redo-ts

> An undo/redo manager for Typescript

Latest version **1.0.2** (published 2017-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install undo-redo-ts
pnpm add undo-redo-ts
yarn add undo-redo-ts
bun add undo-redo-ts
```

## 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.2 |
| Published | 2017-01-24 |
| First published | 2017-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | mpkelly |
| Maintainers | mpkelly |
| Keywords | undo, redo, command, pattern, typescript |

## Links

- npm: https://www.npmjs.com/package/undo-redo-ts
- Repository: https://github.com/mpkelly/undo-redo-ts
- Homepage: https://github.com/mpkelly/undo-redo-ts#readme
- Issues: https://github.com/mpkelly/undo-redo-ts/issues
- npm.io page: https://npm.io/package/undo-redo-ts

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-01-24
- 1.0.1 — 2017-01-24
- 1.0.0 — 2017-01-24

## README

# undo-redo-ts

A simple undo/redo manager for typescript.

## Install

`
npm install undo-redo-ts
`

## Usage

```typescript
import {UndoManager} from 'undo-redo-ts';

const undoManager = new UndoManager();
undoManager.add({
  name: 'Undoable thing',
  undo: () => {console.log('undo')},
  redo: () => {console.log('redo')}
});

undoManager.undo();

undoManager.redo();
```

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