Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    random-stream

    0.0.4¬†‚Äʬ†Public¬†‚Äʬ†Published

    random-stream

    Generate a random stream of acscii characters. Characters are written at random intervals, dt. The time interval dt is chosen between min and max times supplied by the user. Useful for testing, examples and spamming.

    Example

    var RandomStream = require('../.')
     
    var r = RandomStream({
      min: 250   // in milliseconds
    , max: 1000  // in milliseconds
    })
     
    r.pipe(process.stdout)

    where options.min and options.max are the user supplied random time interval for the random character writes. The times given in the example are the defaults used if no options object is passed in.

    Install

    npm install random-stream

    License

    MIT

    Keywords

    none

    Install

    npm i random-stream

    DownloadsWeekly Downloads

    3

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • avatar