{"library":"typpy","type":"library","category":null,"description":"Typpy is a lightweight JavaScript utility that provides a more robust and accurate approach to determining variable types compared to the native `typeof` operator. It addresses common ambiguities of `typeof`, such as `null` evaluating to \"object\" and distinguishing between different object types like arrays and plain objects. The library allows for type comparison against both string representations (e.g., \"array\") and constructor functions (e.g., `Array`). Currently at version 2.4.0, its release cadence is moderate, primarily consisting of minor updates for documentation, sponsor links, and small bug fixes like handling null/undefined constructors. It differentiates itself by offering a consolidated API for precise type checks, simplifying conditional logic and reducing potential type-related bugs in applications.","language":"javascript","status":"active","version":"2.4.0","tags":["javascript","typeof","typpy"],"last_verified":"Wed May 27","install":[{"cmd":"npm install typpy","imports":["import Typpy from 'typpy';","import Typpy from 'typpy'; Typpy.is(value, type);","import Typpy from 'typpy'; Typpy.get(value);"]},{"cmd":"yarn add typpy","imports":[]},{"cmd":"pnpm add typpy","imports":[]}],"homepage":null,"github":"https://github.com/IonicaBizau/typpy","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/typpy","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/typpy/compatibility"}}