{"library":"babel-plugin-jsdoc-to-assert","type":"library","category":null,"description":"A Babel plugin that converts JSDoc type annotations (@param and @type) into runtime assertion statements (console.assert) for testing. Version 4.0.0 is the current stable release, requiring Babel 7+. The plugin transforms static type documentation into executable checks, enabling runtime verification without a separate type system. Unlike TypeScript or Flow, it operates at the AST level during Babel transpilation and supports generic arrays (e.g., number[]) and rest parameters. Its primary differentiator is seamless integration into Babel workflows for development-only assertions, with options to enable/disable @param and @type checking. The package is maintained by azu and has a preset version (babel-preset-jsdoc-to-assert). Releases are infrequent, focusing on compatibility and bug fixes.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","babel","plugin","assert","testing","coc"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-jsdoc-to-assert","imports":["module.exports = require('babel-plugin-jsdoc-to-assert')","\"plugins\": [\"jsdoc-to-assert\"]","\"plugins\": [[\"jsdoc-to-assert\", { \"checkAtType\": true }]]"]},{"cmd":"yarn add babel-plugin-jsdoc-to-assert","imports":[]},{"cmd":"pnpm add babel-plugin-jsdoc-to-assert","imports":[]}],"homepage":null,"github":"https://github.com/azu/babel-plugin-jsdoc-to-assert","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-jsdoc-to-assert","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/babel-plugin-jsdoc-to-assert/compatibility"}}