Socket
Socket
Sign inDemoInstall

console-error

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    console-error

console.error


Version published
Maintainers
1
Install size
1.88 kB
Created

Readme

Source

console.error :

console-error demo

  • The purpose of this module is not to give many options for logging , it is just give you lightweight the missing API of console : which is here console.error.

  • No need documentation, because console.error takes the same arguments as console.log . However console.error will be displayed on terminal like above.

Install :

npm install console-error --save;

How to use :

require('console-error');
// or in babel: import * from 'console-error';

console.error(new Date()); // log time now
console.error({firstname: "Abdesslem", age:32}) ; // log Object
console.error(new Date,[4, 65, 9], {a:"b"}); // I told you : it is like console.log

Use also :

  • console.info

  • console.warn

npm install console-info  console-warn --save;

Keywords

FAQs

Last updated on 06 Dec 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc