{"library":"one-double-zero-core","title":"One Double Zero Core","description":"A code coverage API for JavaScript aiming at relevance, accuracy, simplicity, flexibility and speed (v1.0.2). It leverages V8's built-in coverage for fast, accurate results without instrumenting code. The API is designed to be minimal and composable, catering to both programmatic use and integration with test runners. Ships TypeScript types. Released under ISC license. Known for being lighter and faster than c8 or Istanbul, but with a different API paradigm.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install one-double-zero-core"],"cli":null},"imports":["import oneDoubleZeroCore from 'one-double-zero-core'","import { Coverage } from 'one-double-zero-core'","import { Instrumenter } from 'one-double-zero-core'","const oneDoubleZeroCore = require('one-double-zero-core')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import coverage from 'one-double-zero-core';\n\nconst { Coverage } = await coverage.load({\n  // Paths to cover, e.g., 'src/**/*.js'\n  include: ['src/**/*.js'],\n  // Exclude patterns\n  exclude: ['node_modules']\n});\n\n// After your tests run, gather coverage data\nconst result = await Coverage.takeSnapshot();\nconsole.log('Coverage percentage:', result.summary.coveredLines / result.summary.totalLines * 100);","lang":"typescript","description":"Shows basic usage: initialize coverage with include/exclude patterns, then take snapshot after tests.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}