1.0.64 • Published 2 years ago
scramjet-hello-module v1.0.64
A scramjet-hello-module
An example hello world scramjet module to start your work on.
Once you provide it with a stream of object with names, it'll say hello to each name.
Usage
The stream is best used with scramjet, here's how you use
it:
scramjet
.from(stream)
.use("scramjet-hello-module", "Hi {}!");
The above is the same as writing the same without scramjet:
const helloStream = require("scramjet-hello-module");
const data = new ReadableStream();
data.write("Mike");
data.write("Alice");
data.end("Sam");
const out = helloStream(data, "Hello {}!\n");
out.pipe(process.stdout);
// Hello Mike!
// Hello Alice!
// Hello Sam!
1.0.64
2 years ago
1.0.63
2 years ago
1.0.62
3 years ago
1.0.61
3 years ago
1.0.60
3 years ago
1.0.59
3 years ago
1.0.58
3 years ago
1.0.57
3 years ago
1.0.56
3 years ago
1.0.55
3 years ago
1.0.54
3 years ago
1.0.52
4 years ago
1.0.51
4 years ago
1.0.50
4 years ago
1.0.49
4 years ago
1.0.48
4 years ago
1.0.47
4 years ago
1.0.46
4 years ago
1.0.45
4 years ago
1.0.44
4 years ago
1.0.43
4 years ago
1.0.42
4 years ago
1.0.41
4 years ago
1.0.40
4 years ago
1.0.33
4 years ago
1.0.15
5 years ago
1.0.10
5 years ago
1.0.2
5 years ago