# getorset

> Get or Set a value from object

Latest version **1.0.3** (published 2015-03-21) · ISC license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2015-03-21 |
| First published | 2015-03-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ftft1885 |

## Links

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

## Recent versions

- 1.0.3 (latest) — 2015-03-21
- 1.0.2 — 2015-03-20
- 1.0.0 — 2015-03-20

## README

getorset
===

[![Build status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]
[![Dependency Status][david-image]][david-url]
[npm-image]: https://img.shields.io/npm/v/getorset.svg?style=flat-square
[npm-url]: https://npmjs.org/package/getorset
[downloads-image]: http://img.shields.io/npm/dm/getorset.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/getorset
[david-image]: http://img.shields.io/david/chunpu/getorset.svg?style=flat-square
[david-url]: https://david-dm.org/chunpu/getorset


Get or Set a value from object

Installation
---

```sh
npm i getorset
```

Usage
---

> `getorset(object, key name[, default value])`

```js
var getorset = require('getorset')

var obj = {
	foo: 'bar'
}

var ret = getorset(obj, 'foo2', [])
console.log(ret.foo2) // => []
```

License
---

[![License][license-image]][license-url]

[travis-image]: https://img.shields.io/travis/chunpu/getorset.svg?style=flat-square
[travis-url]: https://travis-ci.org/chunpu/getorset
[license-image]: http://img.shields.io/npm/l/getorset.svg?style=flat-square
[license-url]: #

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