https://github.com/transitive-bullshit/ow-shim
Drop-in replacement to make ow validation library a noop in production.
https://github.com/transitive-bullshit/ow-shim
ow type-checking validation
Last synced: about 2 months ago
JSON representation
Drop-in replacement to make ow validation library a noop in production.
- Host: GitHub
- URL: https://github.com/transitive-bullshit/ow-shim
- Owner: transitive-bullshit
- Created: 2018-06-08T23:12:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-11T23:15:25.000Z (almost 5 years ago)
- Last Synced: 2024-10-20T01:09:58.315Z (7 months ago)
- Topics: ow, type-checking, validation
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ow-shim
> Drop-in replacement to make [ow](https://github.com/sindresorhus/ow) validation library a noop in production.
[](https://www.npmjs.com/package/ow-shim) [](https://travis-ci.com/transitive-bullshit/ow-shim) [](https://standardjs.com)
## Install
```bash
npm install --save ow-shim
```## Usage
There's no standard way to replace your usage of `ow` with `ow-shim` in production, but webpack's [resolve.alias](https://webpack.js.org/configuration/resolve/#resolve-alias) config option works well.
Any `ow` statements will effectively be turned into no-ops.
You may also want to use this shim to cut down on browser bundle size.
## License
MIT © [Travis Fischer](https://github.com/transitive-bullshit)
Support my OSS work by following me on twitter
![]()