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

console-warn

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-warn

console.warn

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
250
-49.39%
Maintainers
1
Weekly downloads
 
Created
Source

console.warn :

console-warn 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.warn.

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

Install :

npm install console-warn --save;

How to use :

require('console-warn');
// or in babel: import info from 'console-warn';

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

Use also :

  • console.info

  • console.error

npm install console-info --save;
npm install console-error --save;

Keywords

console

FAQs

Package last updated on 06 Dec 2016

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