![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
read-lines-riched
Advanced tools
Easy way to read file lines on two directions: from the beginning to the end and from the end to the beginning.
Easy way to read file lines async and efficiently on two directions: from the beginning to the end and from the end to the beginning.
npm install --save read-lines-riched
npm test
readLines(file_path[,options])
- Return instance of readLineRiched
configured with options to read file lines.
options
Object (Optional)
bChunk
Integer - Size in bytes of how many bytes are readed from file at the same time. Default is 1024.dir
Integer - 1 read lines from beginning to the end. -1 read lines from the end to the beginning. Default is 1.readLinesStartToEnd(file_path)
- Return instance of readLineRiched
that read from the beginning of the file to the end reading chunks of 1kb.
readLinesEndToStart(file_path)
- Return instance of readLineRiched
that read from the end of the file to the beginning reading chunks of 1kb.
readLineRiched.readNextLine()
- Read next line of file based on given configuration.
const readLinesEndToStart = require("read-lines-riched").readLinesEndToStart(file_path);
var func = function () {
readLinesEndToStart.readNextLine().then(line => {
if (line) {
console.log(line);
func()
} else
readLinesEndToStart.closeReader();
});
};
func();
const readLinesStartToEnd = require("read-lines-riched").readLinesStartToEnd(file_path);
(async function () {
var line;
while (line = await readLinesStartToEnd.readNextLine()) {
console.log(line);
}
readLinesStartToEnd.closeReader();
})();
const readLinesRiched = require("read-lines-riched").readLines(file_path, {
bChunk: 1024 * 4,
dir: -1
});
(async function () {
var line;
while (line = await readLinesRiched.readNextLine()) {
console.log(line);
}
readLinesRiched.closeReader();
})();
All notable changes to this project can be seen here.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
This project is licensed under the MIT License - see the LICENSE.md file for details
Copyright (c) 2018 Puzzle9900
0.2.3
const readLinesRiched = require("./main").readLines(file_path, {
bChunk: 1024,
dir: 1
});
var line = await readLinesRiched.readNextLine();
FAQs
Easy way to read file lines on two directions: from the beginning to the end and from the end to the beginning.
The npm package read-lines-riched receives a total of 0 weekly downloads. As such, read-lines-riched popularity was classified as not popular.
We found that read-lines-riched demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.