Browse Source

Initial commit

master
Sven Slootweg 1 month ago
commit
83dd84dc83
3 changed files with 21 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +12
    -0
      index.js
  3. +8
    -0
      package.json

+ 1
- 0
.gitignore View File

@ -0,0 +1 @@
node_modules

+ 12
- 0
index.js View File

@ -0,0 +1,12 @@
"use strict";
const pipe = require("@promistream/pipe");
const map = require("@promistream/map");
const buffer = require("@promistream/buffer");
module.exports = function createBufferedMapStream(mapCallback) {
return pipe([
map(mapCallback),
buffer()
]);
};

+ 8
- 0
package.json View File

@ -0,0 +1,8 @@
{
"name": "@promistream/buffered-map",
"version": "0.1.0",
"main": "index.js",
"repository": "http://git.cryto.net/promistream/buffered-map.git",
"author": "Sven Slootweg <admin@cryto.net>",
"license": "WTFPL OR CC0-1.0"
}

Loading…
Cancel
Save