
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
last-line-stream
Advanced tools
A PassThrough stream that keeps track of last line written.
$ npm install --save last-line-stream
const lastLineStream = require('last-line-stream');
const stream = lastLineStream();
stream.write('foo');
assert(stream.lastLine === 'foo');
stream.write('bar');
assert(stream.lastLine === 'foobar');
stream.write('baz\nquz');
assert(stream.lastLine === 'quz');
Returns a new instance of the spying PassThrough stream,
Type: stream
If supplied, the new instance will automatically be piped to this stream.
Type: string
The last line written out to this stream. The lastLine
value will grow until the stream sees a newline character ('\n'
).
A low-level non-stream based API is available. It has only two methods.
var createTracker = require('last-line-stream/tracker');
var tracker = createTracker();
// append some text.
tracker.update(someString);
// Find the complete last line of all the text appended.
tracker.lastLine();
MIT © James Talmage
FAQs
A PassThrough stream that keeps track of last line written
The npm package last-line-stream receives a total of 44,776 weekly downloads. As such, last-line-stream popularity was classified as popular.
We found that last-line-stream 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.