https://github.com/hagb4rd/mapf
map and filter streams of datasets in the pipeline by comiling javascript one liners easily in bash - readline stream map and filter transform
https://github.com/hagb4rd/mapf
bash filter javascript lambdas map pipeline transform
Last synced: 9 months ago
JSON representation
map and filter streams of datasets in the pipeline by comiling javascript one liners easily in bash - readline stream map and filter transform
- Host: GitHub
- URL: https://github.com/hagb4rd/mapf
- Owner: hagb4rd
- License: mit
- Created: 2023-12-01T11:27:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T10:09:17.000Z (about 2 years ago)
- Last Synced: 2025-06-22T18:03:49.336Z (about 1 year ago)
- Topics: bash, filter, javascript, lambdas, map, pipeline, transform
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ea-mapf
Read line by line from input stream and compile small javascript lambdas to transform *mapf* or *filter* them. Tiny. No dependencies. Needs nodejs.org version 18+ (using pure native node streams).
## Installation
```
npm install -g ea-mapf
```
## Example
```
printf %s\\n {1..10} | mapf 's=>Number(s)**3' | filter 's=>Number(s)%2!=0'
```
produces the output
```
1
27
125
343
729
```
Have fun!
###
mcfuege@gmail.com