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

ansi-log

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-log

console.log with ANSI in the browser or server.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source


ansi-log
API stability Standard NPM version Downloads

Isomorphic logging with ANSI styles.

Installation

npm install ansi-log

Example

import chalk from 'chalk'
import log from 'ansi-log'

log(chalk.red('Hello') + chalk.blue('World')) // Console log with appropriate colors.
log('MyMessage', 'error') // Uses console.error
log('MyMessage', 'warn') // Uses console.warn

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

Keywords

FAQs

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