{"library":"mavis","type":"library","category":null,"description":"Mavis is a thorough JavaScript type-checking library that returns precise string labels for values, surpassing typeof. Current stable version is 2.0.0 (last released in 2016). It has minimal dependencies and works in both Node.js and browsers. Unlike constructor-based checkers, Mavis uses strings for forward/backward compatibility. It distinguishes between arrays, objects, functions, generators, numbers, strings, errors, HTML elements, and more. Includes a type.is() method for comparisons and array-of-types matching. The library is very lightweight but no longer actively maintained.","language":"javascript","status":"maintenance","version":"2.0.0","tags":["javascript","object","array","type","typeof","primitive","checker","value"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install mavis","imports":["import mavis from 'mavis'","import mavis from 'mavis'; mavis.is('str', 'string');","import m from 'mavis'"]},{"cmd":"yarn add mavis","imports":[]},{"cmd":"pnpm add mavis","imports":[]}],"homepage":"https://github.com/PsychoLlama/mavis#readme","github":"https://github.com/PsychoLlama/mavis","docs":null,"changelog":null,"pypi":null,"npm":"mavis","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}