# pick-original

> Transform an Object that was transformed to return only the original properties recursively picked if they are not undefined.

Latest version **0.0.1** (published 2020-05-30) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install pick-original
pnpm add pick-original
yarn add pick-original
bun add pick-original
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-05-30 |
| First published | 2020-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.3 |
| Dependencies | 2 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nick Baugh |
| Maintainers | niftylettuce |
| Keywords | database, db, deep, deepPluck, doc, document, fields, fields, filter, json, keys, lodash, mongo, mongodb, mongoose, obj, object, omit, original, original, pick, pick, pluck, pluck, plugin, props, recursive, recursively, schema, schematic, security, select, select, sensitive, to, toJSON, toObject, transform, transformer, undefined |

## Links

- npm: https://www.npmjs.com/package/pick-original
- Repository: https://github.com/ladjs/pick-original
- Issues: https://github.com/ladjs/pick-original/issues
- npm.io page: https://npm.io/package/pick-original

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [node-dotify](https://npm.io/package/node-dotify.md) ^1.0.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-05-30

## README

# pick-original

[![build status](https://img.shields.io/travis/com/ladjs/pick-original.svg)](https://travis-ci.com/ladjs/pick-original)
[![code coverage](https://img.shields.io/codecov/c/github/ladjs/pick-original.svg)](https://codecov.io/gh/ladjs/pick-original)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/pick-original.svg)](LICENSE)
[![npm downloads](https://img.shields.io/npm/dt/pick-original.svg)](https://npm.im/pick-original)

> Transform an Object that was transformed to return only the original properties recursively picked if they are not undefined.


## Table of Contents

* [Install](#install)
* [Usage](#usage)
* [Contributors](#contributors)
* [License](#license)


## Install

[npm][]:

```sh
npm install pick-original
```

[yarn][]:

```sh
yarn add pick-original
```


## Usage

```js
const pickOriginal = require('pick-original');

function createObj(doc) {
  doc.id = Date.now().toString();
  return doc;
}

const original = { foo: 'bar' };

const transformed = pickOriginal(createObj(original), original);

console.log(transformed);

// { foo: 'bar' }
```


## Contributors

| Name           | Website                    |
| -------------- | -------------------------- |
| **Nick Baugh** | <http://niftylettuce.com/> |


## License

[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)


## 

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/

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