New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bunyan-merge-files

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

bunyan-merge-files

merge bunyan log files using Generators

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bunyan-merge-files

Build Status

Description

This module merges an array of Bunyan files and produces an array merged by date. Internally Generators are used because I wanted to learn how to use them.

Scripts

  • test - run tests

Example usage

var Mixer = require('bunyan-merge-files');
var mixer = new Mixer(["file1", "file2"]);
mixer.on('line', function lineEventHandler(evt) {
  console.log(evt.message);
});
var mergedLogs = mixer.mix();

console.log(mergedLogs);

See more additional description

Add API Reference

Mixer(arrayOfFilenames) - constructor for Mixer object Mixer#mix() - merges files, returns results as array

Events

line - emitted when a line has been merged


NOTE: Add some possible note

Keywords

FAQs

Package last updated on 10 Aug 2015

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