co-scat
slow cat use co
Last updated 6 years ago by treri .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install co-scat 
SYNC missed versions from official npm registry.

co-scat

slow cat your files or raw string to stdout

Install

npm install co-scat

Help

scat -h

  Usage: scat [options]

  Options:

    -h, --help       output usage information
    -V, --version    output the version number
    -s, --sps <sps>  strings per second

  Report bugs to <jeremial90@gmail.com>

CLI

% scat -s 20 a.txt b.txt

Node.js

When use scat as cli, there's no need to install co, but when use scat as dependence, you should install co by your self

var scat = require('co-scat')
    , scatFile = scat.scatFile
    , scatString = scat.scatString
    , co = require('co')
    ;

// slow cat file
co(scatFile)('a.txt', 20);

// or slow cat raw string
co(scatString)('raw string to output', 10);

// or use in other functions
co(function *(){
    yield scatFile('../index.js', 30);
})();

License

MIT

Current Tags

  • 0.2.0                                ...           latest (6 years ago)

6 Versions

  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |