https://github.com/zaida04/argrp
📍 Allowing you to use positional arguments in your NPM scripts
https://github.com/zaida04/argrp
Last synced: 8 months ago
JSON representation
📍 Allowing you to use positional arguments in your NPM scripts
- Host: GitHub
- URL: https://github.com/zaida04/argrp
- Owner: zaida04
- License: mit
- Created: 2023-10-09T00:05:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-24T13:28:08.000Z (over 2 years ago)
- Last Synced: 2025-03-31T02:32:45.859Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
npm install -g argrp
```
Or as a development dependency:
```bash
npm install --save-dev argrp
```
## Usage
### In your `package.json`:
You can set up scripts like:
```json
"scripts": {
"test:specific": "argrp \"uvu __tests__/$1.test.ts\""
}
```
### Command Line:
Then, you can run:
```bash
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](LICENSE)