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

carbonate-logger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carbonate-logger

Colourful console logs using carbonate

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

carbonate-logger

Colourful console logs using carbonate

Install

npm install --save carbonate-logger
yarn add carbonate-logger

Import

// ES2015
import log from 'carbonate-logger'
// CommonJS
var log = require('carbonate-logger')

Usage

log (str[, ...values])

Log a carbonate sprintf-style string, interpolated with values.

  • str {String} (required) String to interpolate and log
  • values {*} (optional) Values to interpolate into str

See the carbonate docs for information on what str should look like.

Also available:

  • log.error (str[, ...values])
  • log.warn (str[, ...values])
  • log.info (str[, ...values])

log.quiet (bool)

Pass true to silence the logger.

  • bool {Boolean} (required) Is logger silent

Contributing

All pull requests and issues welcome!

If you're not sure how, check out the great video tutorials on egghead.io!

License

MIT © Sam Gluck

Keywords

FAQs

Package last updated on 31 Aug 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

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