readlineq

2.0.5 • Public • Published

readlineq

read or write file by lines with promise.

var readlineq = require('readlineq');
# read lines with Promise
var lines = await readlineq('./tmp/stopwords.txt');
// console.log(lines);

# write lines which is sync by default
readlineq('./tmp/test.txt', ["foo\n", "bar\n"]);
// console.log(lines);

LICENSE

MIT

chatoper banner

Package Sidebar

Install

npm i readlineq

Weekly Downloads

4

Version

2.0.5

License

MIT

Unpacked Size

5.1 kB

Total Files

5

Last publish

Collaborators

  • hain
  • chatopera