{"library":"gubu","type":"library","category":null,"description":"Gubu is an object shape validation utility for JavaScript and TypeScript, designed to provide a more intuitive and less verbose developer experience compared to alternatives like Joi or JSON-Schema. Currently stable at version 9.0.0, the library differentiates itself with a \"Schema By Example\" approach, where validation schemas closely mirror the actual data structure. This design simplifies reading and reasoning about validation rules. A key feature is its ability to deeply fill out objects with default values if properties are missing, differing from shallow merge operations like `Object.assign`. It's crucial for developers to note that Gubu deliberately mutates the input object to inject these defaults, a design choice to simplify internal logic and delegate cloning decisions to the calling code. Gubu functions effectively in both browser and Node.js environments and ships with full TypeScript support.","language":"javascript","status":"active","version":"9.0.0","tags":["javascript","gubu","schema","validation","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install gubu","imports":["import { Gubu } from 'gubu'","const { Gubu } = require('gubu')","import type { GubuSchema } from 'gubu'"]},{"cmd":"yarn add gubu","imports":[]},{"cmd":"pnpm add gubu","imports":[]}],"homepage":null,"github":"https://github.com/rjrodger/gubu","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/gubu","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/gubu/compatibility"}}