Modules@robinpath/stream
@robinpath/stream
0.1.0PublicStream processing for large files: read, write, transform, filter, split, concat, hash without loading into memory
@robinpath/stream
Stream processing for large files: read, write, transform, filter, split, concat, hash without loading into memory
Why use this module?
The stream module lets you:
- Read entire file content
- Write data to file
- Stream-copy a file
- Read file line by line into array
- Transform file line by line
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/stream
Quick Start
No credentials needed — start using it right away:
stream.writeFile "./out.txt" "hello"
Available Functions
| Function | Description |
|---|---|
stream.readFile | Read entire file content |
stream.writeFile | Write data to file |
stream.copyFile | Stream-copy a file |
stream.lines | Read file line by line into array |
stream.transform | Transform file line by line |
stream.filter | Filter file lines by regex pattern |
stream.concat | Concatenate multiple files |
stream.split | Split file into chunks |
stream.count | Count lines in file |
stream.head | Read first N lines |
stream.tail | Read last N lines |
stream.pipe | Download URL to file via stream |
stream.hash | Stream-hash a file |
Examples
Write data to file
stream.writeFile "./out.txt" "hello"
Stream-copy a file
stream.copyFile "./a.txt" "./b.txt"
Read file line by line into array
stream.lines "./data.csv"
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/stream";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
stream.writeFile "./out.txt" "hello"
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
devops
0
@robinpath/bitbucket
v0.1.1robinpath
Bitbucket module for RobinPath.
0 downloads
...
devops
0
@robinpath/box
v0.1.1robinpath
Box module for RobinPath.
0 downloads
...
devops
0
@robinpath/cache
v0.1.1robinpath
In-memory key-value cache with optional TTL expiration for temporary data storage
0 downloads
...
devops
0
@robinpath/cloudflare
v0.1.1robinpath
Cloudflare module for RobinPath.
0 downloads
...
Install
$ robinpath install @robinpath/stream Version0.1.0
LicenseMIT
Unpacked Size5.7 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

