Socket
Book a DemoInstallSign in
Socket

@fibjs/logstream

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fibjs/logstream

wrap a file stream as a extremely high performance log stream.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

@fibjs/logstream

NPM version build status Test coverage David deps Known Vulnerabilities npm download

wrap a file stream as a extremely high performance log stream.

Install

$ npm i @fibjs/logstream --save

Usage

const fs = require('fs');
const LogStream = require('@fibjs/logstream');

const fd = fs.open('path to log file', 'w');
const bf = new LogStream(fd);
bf.writeText('some log');
bf.writeLine('new line log');
bf.end();// close the log stream.

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

log

FAQs

Package last updated on 24 Apr 2017

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