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

ara-console

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

ara-console

Logging functions for Ara modules so logging is consistent.

  • 0.3.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
2
Weekly downloads
 
Created
Source

ara-console

Build Status

Logging functions for Ara modules to ensure consistent console logs.

Status

Stable

Installation

$ npm install arablocks/ara-console

Example

Print out examples of all logs.

$ node example.js

API

console = require('ara-console')([label])

This module exports a series of utility logging functions for use in several Ara modules.

console.log(stream, prefix, format, ...message)

Writes a formatted message with a prefix to a given stream like stdout or stderr.

const { log } = require('ara-console')
log(process.stdout, 'info: ', '%s %s', someMessage, otherMessage)

console.error(format, ...message)

Prints a formatted error message to stderr.

const { error } = require('ara-console')
error("fatal: ", someMessage)

console.info(format, ...message)

Prints a formatted info message to stdout.

const { info } = require('ara-console')
info("fatal: ", someMessage)

console.warn(format, ...message)

Prints a formatted warn message to stderr.

const { warn } = require('ara-console')
warn("fatal: ", someMessage)

Contributing

Releases follow Semantic Versioning

See Also

License

LGPL-3.0

Keywords

FAQs

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