argrp
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

argrp - Positional arguments for your npm scripts

argrp works by replacing placeholders ($1, $2, ...) in npm scripts with the arguments you provide.

Installation

You can install argrp globally:

npm install -g argrp

Or as a development dependency:

npm install --save-dev argrp

Usage

In your package.json:

You can set up scripts like:

"scripts": {
  "test:specific": "argrp \"uvu __tests__/$1.test.ts\""
}

Command Line:

Then, you can run:

npm run test:specific somefile

The above command will execute uvu __tests__/somefile.test.ts.

Contributing

Contributions are welcome! Please open an issue or submit a PR.

License

MIT

Package Sidebar

Install

npm i argrp

Weekly Downloads

44

Version

1.0.1

License

none

Unpacked Size

4.49 kB

Total Files

7

Last publish

Collaborators

  • nico.03727