GithubHelp home page GithubHelp logo

oresoftware / prepend-transform Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 27 KB

Uses a Node.js transform stream to prepend the given string to the front of each line.

License: MIT License

Shell 26.78% JavaScript 18.70% TypeScript 54.52%
stdout stderr newline stream nodejs nodejs-stream nodejs-streams transform-streams

prepend-transform's Introduction


Version

Prepend-Transform

Prepend text to the beginning of each line in a stream.

Installation

npm install -S prepend-transform

Usage

import pt from 'prepend-transform';
import * as cp from 'child_process';

const n = cp.spawn('bash');

n.stdout.pipe(pt('child stdout: ')).pipe(process.stdout);
n.stderr.pipe(pt('child stderr: ')).pipe(process.stderr);

prepend-transform's People

Contributors

oresoftware avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

prepend-transform's Issues

imperfect action on the prepend

[watch-worker] ok 1 details
[watch-worker] ok 2 details
[watch-worker] ok 3 details
[watch-worker] ok 4 details
[watch-worker] ok 5 details
[watch-worker] ok 6 details
[watch-worker] ok 7 details
[watch-worker] ok 8 details
[watch-worker] ok 9 details
[watch-worker] ok 10 details
[watch-worker] ok 11 details
ok 12 details
[watch-worker] ok 13 details
[watch-worker] ok 14 details
[watch-worker] ok 15 details
[watch-worker] ok 16 details
[watch-worker] ok 17 details
[watch-worker] ok 18 details
[watch-worker] ok 19 details
[watch-worker] ok 20 details
[watch-worker] ok 21 details
[watch-worker] ok 22 details
[watch-worker] ok 23 details
[watch-worker] ok 24 details
[watch-worker] ok 25 details
[watch-worker] ok 26 details
[watch-worker] ok 27 details
[watch-worker] ok 28 details
[watch-worker] ok 29 details
[watch-worker] ok 30 details
[watch-worker] ok 31 details
[watch-worker] ok 32 details
[watch-worker] ok 33 details
[watch-worker] ok 34 details
[watch-worker] ok 35 details
[watch-worker] ok 36 details
[watch-worker] ok 37 details
[watch-worker] ok 38 details
[watch-worker] ok 39 details
[watch-worker] ok 40 details
[watch-worker] ok 41 details
[watch-worker] ok 42 details
[watch-worker] ok 43 details
[watch-worker] ok 44 details
[watch-worker] ok 45 details
[watch-worker] ok 46 details
[watch-worker] ok 47 details
[watch-worker] ok 48 details
[watch-worker] ok 49 details
[watch-worker] ok 50 details
[watch-worker] ok 51 details
[watch-worker] ok 52 details
[watch-worker] ok 53 details
[watch-worker] ok 54 details
[watch-worker] ok 55 details
[watch-worker] ok 56 details
[watch-worker] ok 57 details
ok 58 details
[watch-worker] ok 59 details
[watch-worker] ok 60 details
[watch-worker] ok 61 details
[watch-worker] ok 62 details
[watch-worker] ok 63 details
[watch-worker] ok 64 details
[watch-worker] ok 65 details
[watch-worker] ok 66 details
[watch-worker] ok 67 details
[watch-worker] ok 68 details
[watch-worker] ok 69 details
[watch-worker] ok 70 details
[watch-worker] ok 71 details
[watch-worker] ok 72 details
[watch-worker] ok 73 details
[watch-worker] ok 74 details
[watch-worker] ok 75 details
[watch-worker] ok 76 details
[watch-worker] ok 77 details
[watch-worker] ok 78 details
[watch-worker] ok 79 details
[watch-worker] ok 80 details
[watch-worker] ok 81 details
[watch-worker] ok 82 details
[watch-worker] ok 83 details
[watch-worker] ok 84 details
[watch-worker] ok 85 details
[watch-worker] ok 86 details
[watch-worker] ok 87 details
[watch-worker] ok 88 details
[watch-worker] ok 89 details
[watch-worker] ok 90 details
[watch-worker] ok 91 details
[watch-worker] ok 92 details
ok 93 details
[watch-worker] ok 94 details
[watch-worker] ok 95 details
[watch-worker] ok 96 details
[watch-worker] ok 97 details
[watch-worker] ok 98 details
[watch-worker] ok 99 details
[watch-worker]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.