JSPM

console-warn

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 521
  • Score
    100M100P100Q91870F
  • License MIT

console.warn

Package Exports

  • console-warn

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (console-warn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

Related modules :

Use also :

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