https://github.com/niradler/loop-pipe
loop over piped data.
https://github.com/niradler/loop-pipe
cli loop pipe tool
Last synced: about 1 year ago
JSON representation
loop over piped data.
- Host: GitHub
- URL: https://github.com/niradler/loop-pipe
- Owner: niradler
- Created: 2020-02-09T19:12:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T09:14:04.000Z (about 4 years ago)
- Last Synced: 2025-03-09T22:04:14.597Z (over 1 year ago)
- Topics: cli, loop, pipe, tool
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loop-pipe
loop over piped data.
## Installation
```
npm i -g loop-pipe
```
## Usage
- --verbose (debug mode, add extra logs, default:false)
- --dry (dry run will print the command and not actually run it, default:false)
- --pattern (the pattern to create the array, pass to split function, default:\n)
- --clean (you can transform the data with pattern to clean for not needed character, default:/\r?\n|\r/g)
## Example
```
echo "a,b,c" | lp --p="," "echo {v} is in location {i}"
```