node-gets

0.3.0 • Public • Published

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);
//...

Readme

Keywords

Package Sidebar

Install

npm i node-gets

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

5.56 kB

Total Files

5

Last publish

Collaborators

  • cwd-k2