# ngraph.expose

> Adds getters and setters to subeset of object's properties

Latest version **1.0.0** (published 2019-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngraph.expose
pnpm add ngraph.expose
yarn add ngraph.expose
bun add ngraph.expose
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-06-04 |
| First published | 2014-01-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Andrei Kashcha |
| Maintainers | anvaka |
| Keywords | util, properties |

## Links

- npm: https://www.npmjs.com/package/ngraph.expose
- Repository: https://github.com/anvaka/ngraph.expose
- Homepage: https://github.com/anvaka/ngraph.expose#readme
- Issues: https://github.com/anvaka/ngraph.expose/issues
- npm.io page: https://npm.io/package/ngraph.expose

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-06-04
- 0.0.0 — 2014-01-19

## README

# ngraph.expose

Adds getters and setters to subset of object's properties

[![Build Status](https://travis-ci.org/anvaka/ngraph.expose.png?branch=master)](https://travis-ci.org/anvaka/ngraph.expose)

# Example

``` js
var target = {};
var source = { age: 42};

exposeProperties(source, target);

target.age(); // returns 42
target.age(24); // sets source.age to 24;

```

You can also select only subset of properties you want to expose:

``` js
var target = {};
var source = { age: 42, name: 'John'};
exposeProperties(source, target, ['name']);
target.name(); // returns 'John'
target.age === undefined; // true
```

# install

With [npm](https://npmjs.org) do:

```
npm install ngraph.expose
```

# license

MIT

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