Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
🐷 A flexible and easy-to-use Test Runner for Node, Bun and Deno, which allows parallel or sequential runs and high isolation level
🖇️ A flexible and easy-to-use Test Runner for Node, Bun and Deno, which allows parallel or sequential runs and high isolation level.
Poku starts from the premise where tests come to help, not overcomplicate.
Runs test files in an individual process, shows progress and exits 🪄
process.exit
at several depths on the same process node.npm install --save-dev poku
npm install --save-dev poku tsx
bun add --dev poku
import { poku } from 'npm:poku';
--allow-read
, --allow-env
and --allow-run
.import { poku } from 'poku';
await poku(['./a', './b']);
import { poku } from 'npm:poku';
await poku(['./a', './b']);
npx poku --include='./a,./b'
bun poku --include='./a,./b'
deno run npm:poku --include='./a,./b'
Documentation in Progress 🧑🏻🔧
Initially, the documentation is based on Node.js usage, but you can use all the options normally for both Bun and Deno.
poku(string | string[])
poku('./targetDir');
poku(['./targetDirA', './targetDirB']);
npx poku --include='./targetDir'
npx poku --include='./targetDirA,./targetDirB'
poku(string | string[], configs: Configs)
filter
Filter by path using Regex to match only the files that should be performed.
/**
* @default
*
* Testing all `*.test.*` files.
*/
poku(['...'], {
filter: /\.test\./,
});
/**
* Testing all `ts`, `js`, `mts` and `mjs` files
*/
poku(['...'], {
filter: /\.(m)?(j|t)?s$/,
// filter: /\.(js|ts|mjs|mts)$/,
});
# Testing only a specific file
npx poku --include='...' --filter='some-file'
# Testing only paths that contains "unit"
npx poku --include='...' --filter='unit'
By using
FILTER
from Environment Variable, it will overwrite thefilter
option.
# Testing only a specific file
FILTER='some-file' npx poku --include='...'
# Testing only paths that contains "unit"
FILTER='unit' npx poku --include='...'
parallel
Determines the mode of test execution across parallelism or sequential modes.
/**
* @default
*
* Sequential mode
*/
poku(['...'], {
parallel: false,
});
/**
* Parallel mode
*/
poku(['...'], {
parallel: true,
});
🧑🏻🎓 Soon documenting all options and Poku's usage variations.
FAQs
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
The npm package poku receives a total of 300 weekly downloads. As such, poku popularity was classified as not popular.
We found that poku demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.