
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
☔️ @pokujs/c8 is a Poku plugin for V8 code coverage using c8.
npm i -D @pokujs/c8
// poku.config.js
import { coverage } from '@pokujs/c8';
import { defineConfig } from 'poku';
export default defineConfig({
plugins: [coverage()],
});
That's it! Run poku and a coverage summary will be printed after your test results.
[!IMPORTANT]
This plugin relies on Node.js' built-in
NODE_V8_COVERAGEenvironment variable to collect coverage data. Bun and Deno do not support this mechanism, so coverage data will not be collected when running tests with these runtimes.
coverage({
// Reporters
reporter: ['text', 'lcov'], // default: ['text']
// File selection
include: ['src/**'], // default: [] (all files)
exclude: ['**/*.test.ts'], // default: c8 defaults
extension: ['.ts', '.js'], // default: c8 defaults
// Thresholds
checkCoverage: true, // default: false
lines: 80, // default: 0
branches: 80, // default: 0
functions: 80, // default: 0
statements: 80, // default: 0
perFile: false, // default: false
// Include untested files
all: true, // default: false
src: ['src'], // default: [cwd]
// Experimental
experimental: ['monocart'], // default: []
// Output
reportsDirectory: './coverage', // default: './coverage'
skipFull: false, // default: false
// Advanced
excludeAfterRemap: false, // default: false
mergeAsync: false, // default: false
clean: true, // default: true
});
coverage({
include: ['src/**'],
});
coverage({
include: ['src/**'],
reporter: ['text', 'html', 'lcov'],
});
Set a single threshold for all metrics at once by passing a number:
coverage({
include: ['src/**'],
checkCoverage: 100,
});
Or use true to set individual thresholds for each metric:
coverage({
include: ['src/**'],
checkCoverage: true,
lines: 95,
branches: 90,
functions: 85,
statements: 95,
});
coverage({
include: ['src/**'],
extension: ['.ts'],
all: true,
});
npm i -D monocart-coverage-reports
coverage({
include: ['src/**'],
reporter: ['v8', 'console-details', 'codecov'],
experimental: ['monocart'],
});
setup creates a temp directory and sets NODE_V8_COVERAGE — every test process spawned by Poku automatically writes V8 coverage datateardown uses c8 to generate reports from the collected data, optionally checks thresholds, then cleans upMIT © wellwelwel and contributors.
FAQs
☔️ A Poku plugin for V8 code coverage using c8.
We found that @pokujs/c8 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.