# dc-cursor

> WIP

Latest version **0.1.2** (published 2017-03-10) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dc-cursor
pnpm add dc-cursor
yarn add dc-cursor
bun add dc-cursor
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-03-10 |
| First published | 2016-12-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | blackchef |

## Links

- npm: https://www.npmjs.com/package/dc-cursor
- Repository: https://github.com/blackChef/data_cursor
- Homepage: https://github.com/blackChef/data_cursor#readme
- Issues: https://github.com/blackChef/data_cursor/issues
- npm.io page: https://npm.io/package/dc-cursor

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.6.1
- [deep-diff](https://npm.io/package/deep-diff.md) ^0.3.4
- [event-emitter](https://npm.io/package/event-emitter.md) ^0.3.4

## Recent versions

- 0.1.2 (latest) — 2017-03-10
- 0.1.1 — 2017-02-15
- 0.0.9 — 2017-02-10
- 0.0.8 — 2017-02-09
- 0.0.7 — 2017-01-06
- 0.0.6 — 2017-01-05
- 0.0.5 — 2017-01-05
- 0.0.2 — 2017-01-04
- 0.1.0 — 2016-12-30

## README

# dc-cursor
WIP

An immutable data cursor implementation.

Quick start:

    import { initCursor } from 'dc-cursor';
    
    // create cursor instance
    let onModelUpdate = function(newModel) {
      console.log('model updated, new value is:');
      console.log( newModel.$val() );
      model = newModel;
    };

    let model = initCursor([1, 2, 3], onModelUpdate);

    // get value
    console.log( model[0].$val() );
    // => 1

    // set value
    model[0].$set('a');
    // => model updated, new value is:
    // => ['a', 2, 3]

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