0.3.0 • Published 2 years ago

node-gets v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

node-gets

Installation

# If you prefer GitHub version
$ npm install --save cwd-k2/node-gets

Usage

const gets = require("node-gets").createGets();

// echo each line from stdin
for (let i = 0; i < 10; i++) {
  const str = gets();
  console.log(str);
}

Performance Tips

If you have to treat a big amount of input, you can configure the buffer size and chunk size to be big enough.

// For big input
// Second argument: buffer size
// Third argument:  chunk size
const gets = require("node-gets").createGets(0, 65536, 8192);
//...
0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.0

3 years ago