{"library":"rollup-plugin-power-assert","title":"rollup-plugin-power-assert","description":"Rollup and Vite plugin for power-assert, providing descriptive assertion messages through the standard Node.js assert interface. Current stable version is 0.2.0. It transforms assertion expressions (e.g., assert(ary.indexOf(zero) === two)) into detailed, labeled output showing intermediate values. The library supports both Rollup and Vite/Vitest with minimal configuration, and is part of the power-assert monorepo. Key differentiators include zero API overhead and compatibility with Vitest's assert API.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-power-assert"],"cli":null},"imports":["import { powerAssert } from 'rollup-plugin-power-assert'","const { powerAssert } = require('rollup-plugin-power-assert')","import type { PowerAssertOptions } from 'rollup-plugin-power-assert'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { defineConfig } from 'vite';\nimport { powerAssert } from 'rollup-plugin-power-assert';\n\nconst testPattern = 'examples/**/__tests__/**/*.test.mts';\n\nexport default defineConfig({\n  plugins: [\n    powerAssert({\n      include: testPattern,\n    }),\n  ],\n  test: {\n    include: testPattern,\n  },\n});","lang":"typescript","description":"Configure Vite/Vitest with the powerAssert plugin to enable descriptive assertion messages in test files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}