New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-scribe

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-scribe

a stream logging module for node.js

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

a stream logging module for node.js

               _ _          
              (_) |         
 ___  ___ _ __ _| |__   ___ 
/ __|/ __| '__| | '_ \ / _ \
\__ \ (__| |  | | |_) |  __/
|___/\___|_|  |_|_.__/ \___|
                        
                        

NPM Version

Gitter chat

Build Status Coverage Status Dependency Status

Installing

To install the latest release with npm run:

npm install scribe

to install the development version from github run:

npm install "git+https://github.com/belbis/scribe"

Introduction

Scribe is a logging library for node.js that utilizes writeStreams.

Scripta

Scripta is just plural of Scriptum which are the writeStreams implemented for Scribe. Currently these scripta are supported:

  • SQS - AWS SQS scriptum write stream
  • Stream - generic write scriptum stream scripta
  • File - write to file
  • STDOut - write to stdout
  • DevNull -- write to /dev/null (currently only linux supported)

usage

stdout example:

var scribe = require("scribe");

var logger = scribe.getLogger();
var scr = new scribe.scripta.STDOut({addNewLine: true});
logger.open();
logger.add(scr);
logger.log("shaken, not stirred.");
logger.close();

file example:

var scribe = require("scribe");

var logger = scribe.getLogger();
var scr = new scribe.scripta.File({addNewLine: true});
logger.open();
logger.add(scr);
logger.log("shaken, not stirred.");
logger.close();

AWS SQS example:

var scribe = require("scribe");

var logger = scribe.getLogger();
var scr = new scribe.scripta.SQS();
logger.open();
logger.add(scr);
logger.log("shaken, not stirred.");

disclaimer

this project is currently in development

future

allow for read as duplex stream

get devnull working on windows

Keywords

logging

FAQs

Package last updated on 07 Apr 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