# ow-lite-ts

> Lightweight replacement for the ow validation library meant for browser usage.

Latest version **1.0.2** (published 2018-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ow-lite-ts
pnpm add ow-lite-ts
yarn add ow-lite-ts
bun add ow-lite-ts
```

## 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.2 |
| Published | 2018-11-10 |
| First published | 2018-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Travis Fischer |
| Maintainers | bluelovers |
| Keywords | assert, assertion, browser, check, checking, guard, guards, instanceof, is, lite, object, ow, ow-lite, predicate, predicates, shim, type, typeof, types, util, utility, validate, validation |

## Links

- npm: https://www.npmjs.com/package/ow-lite-ts
- Repository: https://github.com/transitive-bullshit/ow-lite
- Homepage: https://github.com/transitive-bullshit/ow-lite#readme
- Issues: https://github.com/transitive-bullshit/ow-lite/issues
- npm.io page: https://npm.io/package/ow-lite-ts

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-11-10
- 1.0.1 — 2018-11-10
- 1.0.0 — 2018-11-10

## README

# ow-lite

> Lightweight replacement for the [ow](https://github.com/sindresorhus/ow) validation library meant for browser usage.

## Install

```bash
npm install ow-lite-ts
```

> fork from [ow-lite](https://github.com/transitive-bullshit/ow-lite)

    try make support for typescript, but ... feel sad ... can't make it fully support

## Why

`ow-lite` supports the most practical `ow` usage and is **30x smaller**, which is really important for **browser usage**.

| Library        | Size      | Minified | GZip    |
|:---------------|:----------|:---------|:--------|
| `ow@0.5.0`     | 119.61kb  | 65.95kb  | 17.58kb |
| `ow-lite`      | 6kb       | 2.2kb    | 903b    |


`ow-lite` has the following drawbacks:

- less verbose error messages
- less support for uncommon types and predicate methods

## Usage

You may use `ow-lite` as a mostly drop-in replacement for `ow`. It supports the following types:

- number
- string
- object

Webpack's [resolve.alias](https://webpack.js.org/configuration/resolve/#resolve-alias) is a solid option for replacing `ow` with `ow-lite` at build time. See also [ow-shim](https://github.com/transitive-bullshit/ow-shim) if you want to replace `ow` usage with noops in production.

## Related

- [ow](https://github.com/sindresorhus/ow) - Function argument validation for humans.
- [ow-shim](https://github.com/transitive-bullshit/ow-shim) - Drop-in replacement to make the ow validation library a noop in production.

## License

MIT © [Travis Fischer](https://github.com/transitive-bullshit)

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