{"id":15789550,"url":"https://github.com/transitive-bullshit/ow-lite","last_synced_at":"2025-03-14T13:30:31.098Z","repository":{"id":57317190,"uuid":"137283537","full_name":"transitive-bullshit/ow-lite","owner":"transitive-bullshit","description":"Lightweight replacement for the ow validation library meant for browser usage.","archived":false,"fork":false,"pushed_at":"2020-07-11T23:12:42.000Z","size":51,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-20T01:08:35.844Z","etag":null,"topics":["ow","type-checking","validation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transitive-bullshit.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-13T23:50:04.000Z","updated_at":"2019-06-07T08:07:02.000Z","dependencies_parsed_at":"2022-08-25T20:40:40.541Z","dependency_job_id":null,"html_url":"https://github.com/transitive-bullshit/ow-lite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fow-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fow-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fow-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transitive-bullshit%2Fow-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transitive-bullshit","download_url":"https://codeload.github.com/transitive-bullshit/ow-lite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243584013,"owners_count":20314679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ow","type-checking","validation"],"created_at":"2024-10-04T22:02:15.144Z","updated_at":"2025-03-14T13:30:30.758Z","avatar_url":"https://github.com/transitive-bullshit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ow-lite\n\n\u003e 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 the most 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Fow-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftransitive-bullshit%2Fow-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftransitive-bullshit%2Fow-lite/lists"}