# selectorify

> simple selectors generator

Latest version **1.0.3** (published 2021-01-17) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-01-17 |
| First published | 2021-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vaukalak |
| Maintainers | vaukalak |

## Links

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

## Dependencies (1)

- [reselect](https://npm.io/package/reselect.md) ^4.0.0

## Recent versions

- 1.0.3 (latest) — 2021-01-17
- 1.0.2 — 2021-01-16
- 1.0.1 — 2021-01-16
- 1.0.0 — 2021-01-16

## README

# selectorify

simple selectors generator

## installation

```
yarn add selectorify
```

## Usage

```ts
import { selectorify } from "selectorify";

const getUser = ({ user }: RootState) => user;

const defaultState: User = {
  firstName: string,
  lastName: string,
  avatar: string,
};

export const selectors = selectorify(getUser);

const firstName = selectors.selectFirstName(rootState);
```

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