{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/ow/","markdown":"https://findsoftware.frbit.cloud/ow.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"ow","name":"ow","urls":{"home":"https://sindresorhus.com/ow/","repository":"https://github.com/sindresorhus/ow","docs":"https://sindresorhus.com/ow/"},"category":["library"],"description":"TypeScript library for runtime validation of function arguments, with chainable predicates and readable error messages.","maintainer":"Sindre Sorhus","maintainerType":"individual","firstRelease":2016,"hosting":["node"],"language":"javascript","runtime":["node"],"runtimeMin":"node 20","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"npm","licenseModel":"open-source","license":"MIT","currentMajor":"3","latestReleaseDate":"2025-10-16T00:00:00.000Z","githubStargazers":3865,"contributors":34,"packagistDownloads":null,"npmWeeklyDownloads":2637752,"dependentRepos":46961,"dependentPackages":480,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/sindresorhus/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://api.github.com/repos/sindresorhus/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://raw.githubusercontent.com/sindresorhus/ow/main/readme.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://raw.githubusercontent.com/sindresorhus/ow/main/license","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/sindresorhus/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://raw.githubusercontent.com/sindresorhus/ow/main/readme.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://raw.githubusercontent.com/sindresorhus/ow/main/readme.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://raw.githubusercontent.com/sindresorhus/ow/v3.1.1/package.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://raw.githubusercontent.com/sindresorhus/ow/main/readme.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://api.github.com/repos/sindresorhus/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"licenseModel","url":"https://raw.githubusercontent.com/sindresorhus/ow/main/license","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/sindresorhus/ow/releases/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/sindresorhus/ow/releases/latest","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://registry.npmjs.org/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/sindresorhus/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/sindresorhus/ow/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"npmWeeklyDownloads","url":"https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/ow","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/ow","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"ow checks the arguments of a function at runtime and throws an ArgumentError with a message when a value does not match. Checks are written as chained predicates, such as ow.string.minLength, and TypeScript type guards narrow the checked value afterwards.\n\nThe package installs from npm and runs in Node.js, where the name of a checked value is inferred from the source. In the browser that inference does not work.\n\n## Worth knowing\n\nFor complex schema validation, such as API responses or parsed JSON, the README points to zod instead. A dev-only import, ow/dev-only, exports a shim in production builds, which lowers the bundle size."}