# @feizheng/next-try-set-get

> Try to set value then return the value.

Latest version **1.0.0** (published 2020-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @feizheng/next-try-set-get
pnpm add @feizheng/next-try-set-get
yarn add @feizheng/next-try-set-get
bun add @feizheng/next-try-set-get
```

## 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.0 |
| Published | 2020-05-25 |
| First published | 2020-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |

## Links

- npm: https://www.npmjs.com/package/@feizheng/next-try-set-get
- Homepage: https://github.com/afeiship/next-try-set-get
- npm.io page: https://npm.io/package/@feizheng/next-try-set-get

## Dependencies (1)

- [@feizheng/next-js-core2](https://npm.io/package/@feizheng/next-js-core2.md) ^2.5.0

## Recent versions

- 1.0.0 (latest) — 2020-05-25

## README

# next-try-set-get
> Try to set value then return the value.

## installation
```bash
npm install -S @feizheng/next-try-set-get
```

## usage
```js
import '@feizheng/next-try-set-get';

const obj = { name: 'fei', email: '1290657123@qq.com' };
const res1 = nx.trySetGet(obj, 'name', 'feizheng');
const res2 = nx.trySetGet(obj, 'github', 'afeiship');

// results:

// afei
// afeiship
```

---
_Source: https://npm.io/package/@feizheng/next-try-set-get · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
