readlineq

Read or write file by lines with promise.

Usage no npm install needed!

<script type="module">
  import readlineq from 'https://cdn.skypack.dev/readlineq';
</script>

README

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