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

bintail

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bintail

Like tail -f, but binary-safe!

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Bintail

Like tail -f, but binary-safe!

Overview

This is a very simple, probably naiive, binary-safe tail -f implementation for Node.JS. The thing that makes this module different from most of the others on NPM is that it doesn't rely on the actual tail command (what the hell, right?,) doesn't rely on any external dependencies, and is written in a way that makes it possible to read for people who aren't robots.

Why didn't this exist already?

Super Quickstart

Doesn't get much easier.

var Bintail = require("bintail");

Bintail.createReadStream("./log.txt").pipe(process.stdout);

Installation

Available via npm:

$ npm install bintail

Or via git:

$ git clone git://github.com/deoxxa/bintail.git node_modules/bintail

API

constructor

Constructs a new Bintail object, providing a filename and optionally some other parameters. It's usually easier to just use createReadStream.

new Bintail(filename, [options]);
// basic instantiation
var bt = new Bintail("./log.txt");

// instantiation with a start offset
var bt = new Bintail("./log.txt", {start: 100});

Arguments

  • filename - a string
  • options - an object specifying options

createReadStream

Creates a new Bintail object and returns it. I can't believe it's not fs.createReadStream()!

Bintail.createReadStream(filename, [options]);
require("bintail").createReadStream("./log.txt").pipe(process.stdout);

Arguments

  • filename - a string
  • options - an object specifying options

License

3-clause BSD. A copy is included with the source.

Contact

Keywords

FAQs

Package last updated on 24 Jul 2013

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