# lense

> Lenses for javascript

Latest version **0.0.3** (published 2017-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install lense
pnpm add lense
yarn add lense
bun add lense
```

## 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.0.3 |
| Published | 2017-08-23 |
| First published | 2014-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andy Scott |
| Maintainers | andyscott |
| Keywords | functional, lense |

## Links

- npm: https://www.npmjs.com/package/lense
- Repository: https://github.com/andyscott/lenses
- Issues: https://github.com/andyscott/lenses/issues
- npm.io page: https://npm.io/package/lense

## Recent versions

- 0.0.3 (latest) — 2017-08-23
- 0.0.2 — 2014-05-12
- 0.0.1 — 2014-05-11

## README

Lenses for javascript.

Minimal, and no external dependencies (except for building/testing).

#Licensing
See the [license](LICENSE.md) for licensing.

#Example

    var Lense = require('lense').Lense
    lense = Lense.parse('foo.bar[1].a')

    obj = {
      "foo": {
        "bar": [
          1,
          { "a": 2 }
        ]
      }
    }

    console.log(lense.get(obj)) // > 2
    lense.set(obj, 4000)
    console.log(lense.get(obj)) // > 4000

#Documentation
See the [source](lenses.coffee.md) for more documentation.

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