Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 807 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 807 Bytes

readlineq

read or write file by lines with promise.

var readlineq = require('readlineq').default;
# 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);

OR ES 6,

import readlineq from "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