Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-tail

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-tail

An asynchronous file tailer, which survives unlink() and rename operations

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

async-tail

Build Status License Docs

NPM

A zero-dependency file-tailer that exposes an async interface and handles unlink() and rename() events

Install

$ npm install async-tail

Usage

const FileTailer = require("async-tail").default;

const main = async () => {
    const tailer = new FileTailer("/tmp/foo");
    setTimeout(() => tailer.stop(), 10000); // stop tailing after 10 seconds
    for await (const line of tailer.watch()) {
        console.log("received", line);
    }
}

Keywords

FAQs

Package last updated on 04 Dec 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc