argrp works by replacing placeholders ($1, $2, ...) in npm scripts with the arguments you provide.
You can install argrp globally:
npm install -g argrpOr as a development dependency:
npm install --save-dev argrpYou can set up scripts like:
"scripts": {
"test:specific": "argrp \"uvu __tests__/$1.test.ts\""
}Then, you can run:
npm run test:specific somefileThe above command will execute uvu __tests__/somefile.test.ts.
Contributions are welcome! Please open an issue or submit a PR.