{"_id":"ow-lite","_rev":"2-1b1f4c18cce856b315b2f9da19230000","name":"ow-lite","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"ow-lite","version":"0.0.2","description":"Lightweight replacement for the ow validation library meant for browser usage.","main":"index.js","repository":{"type":"git","url":"https://github.com/transitive-bullshit/ow-lite.git"},"author":{"name":"Travis Fischer","email":"travis@automagical.ai"},"license":"MIT","scripts":{"test":"ava -v && standard"},"engines":{"node":">=6"},"keywords":["ow","browser","shim","lite"],"devDependencies":{"ava":"^0.25.0","esm":"^3.0.49","standard":"^11.0.0"},"ava":{"require":["esm"]},"_id":"ow-lite@0.0.2","dist":{"shasum":"df9f500e6740b6590a1e9a965730d49a8eb597d1","tarball":"https://registry.npmjs.org/ow-lite/-/ow-lite-0.0.2.tgz","fileCount":16,"unpackedSize":17424,"integrity":"sha512-5PorMvUhPJACq2HOX54idr9TkRKPhzXIEu7DlM1iiVQoKC4rR8FAJND3bkOOiyGOgq6Ve7vh32o8Pfimr7tM4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjDOKfXKdMnyc3MI+Sxt7Ctve9gwDnirbsujhqi8PnQAiEA5VEdPrXLL7SyKnFUM8pB/VVxTAexUrcy4P7S8nQkXFk="}]},"maintainers":[{"name":"fisch0920","email":"fisch0920@gmail.com"}],"_npmUser":{"name":"fisch0920","email":"fisch0920@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ow-lite_0.0.2_1528934635817_0.9554265292232536"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-14T00:03:55.817Z","0.0.2":"2018-06-14T00:03:55.878Z","modified":"2022-06-23T05:12:59.391Z"},"maintainers":[{"name":"fisch0920","email":"fisch0920@gmail.com"}],"description":"Lightweight replacement for the ow validation library meant for browser usage.","keywords":["ow","browser","shim","lite"],"repository":{"type":"git","url":"https://github.com/transitive-bullshit/ow-lite.git"},"author":{"name":"Travis Fischer","email":"travis@automagical.ai"},"license":"MIT","readme":"# ow-lite\n\n> Lightweight replacement for the [ow](https://github.com/sindresorhus/ow) validation library meant for browser usage.\n\n[![NPM](https://img.shields.io/npm/v/ow-lite.svg)](https://www.npmjs.com/package/ow-lite) [![Build Status](https://travis-ci.com/transitive-bullshit/ow-lite.svg?branch=master)](https://travis-ci.com/transitive-bullshit/ow-lite) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save ow-lite\n```\n\n## Why\n\n`ow-lite` supports 98% of practical `ow` usage and is **30x smaller**, which is really important for **browser usage**.\n\n| Library        | Size      | Minified | GZip    |\n|:---------------|:----------|:---------|:--------|\n| `ow@0.5.0`     | 119.61kb  | 65.95kb  | 17.58kb |\n| `ow-lite`      | 6kb       | 2.2kb    | 903b    |\n\n\n`ow-lite` has the following drawbacks:\n\n- less verbose error messages\n- less support for uncommon types and predicate methods\n\n## Usage\n\nYou may use `ow-lite` as a mostly drop-in replacement for `ow`. It supports the following types:\n\n- number\n- string\n- object\n\nWebpack'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.\n\n## Related\n\n- [ow](https://github.com/sindresorhus/ow) - Function argument validation for humans.\n- [ow-shim](https://github.com/transitive-bullshit/ow-shim) - Drop-in replacement to make the ow validation library a noop in production.\n\n## License\n\nMIT © [Travis Fischer](https://github.com/transitive-bullshit)\n","readmeFilename":"readme.md"}