# typed-helpers

> Typed utils for TypeScript codebases.

Latest version **0.0.4** (published 2023-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install typed-helpers
pnpm add typed-helpers
yarn add typed-helpers
bun add typed-helpers
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-03-01 |
| First published | 2023-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Diogo Capela |
| Maintainers | diogocapela |
| Keywords | typed, helpers, utils, typescript |

## Links

- npm: https://www.npmjs.com/package/typed-helpers
- Repository: https://github.com/diogocapela/typed-helpers
- Homepage: https://github.com/diogocapela/typed-helpers#readme
- Issues: https://github.com/diogocapela/typed-helpers/issues
- npm.io page: https://npm.io/package/typed-helpers

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2023-03-01
- 0.0.3 — 2023-02-26
- 0.0.2 — 2023-02-24
- 0.0.1 — 2023-02-24

## README

# typed-helpers

[![npm](https://img.shields.io/npm/v/typed-helpers.svg)](https://www.npmjs.com/package/typed-helpers)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/diogocapela/typed-helpers/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/diogocapela/typed-helpers/tree/main)

Typed utils for TypeScript codebases.

## Installation

```bash
npm i typed-helpers --save
```

## Usage

### `typedObject.keys()`

```typescript
import { typedObject } from 'typed-helpers';

const planets = {
  earth: 'Earth',
  mars: 'Mars',
  jupiter: 'Jupiter',
} as const;

const nativeKeys = Object.keys(planets);
// string[]

const typedKeys = typedObject.keys(planets);
// ("earth" | "mars" | "jupiter")[]
```

### `typedObject.entries()`

```typescript
import { typedObject } from 'typed-helpers';

const planets = {
  earth: 'Earth',
  mars: 'Mars',
  jupiter: 'Jupiter',
} as const;

const nativeEntries = Object.entries(planets);
// [string, "Earth" | "Mars" | "Jupiter"][]

const typedEntries = typedObject.entries(planets);
// ["earth" | "mars" | "jupiter", "Earth" | "Mars" | "Jupiter"][]
```

## License

Open source under the terms of the [MIT License](/LICENSE).

Maintained by [Diogo Capela](https://diogocapela.com).

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