JSPM

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

Prime colors for your console

Package Exports

  • manakin

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 (manakin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

manakin

Build Status Coverage Status Join the chat at https://gitter.im/vitaly-t/manakin

Wire-tailed manakin

Red & Yellow colors for your console.error and console.warn messages in Node.js.


You can start using the existing console.error + console.warn methods, and then add manakin later, which will only change their output color, but never the format.


You can either set colors globally, for the `console` object, or use them locally.



minimum code ✔ no dependencies ✔



What is great about this library - the output format is 100% consistent with console.log in Node.js.

It means that changing colors for the console methods does not affect their rich syntax or the output format.

This is what makes this library stand out from all the libraries that do color console output, because they can only apply colors to a simple text string, while this library focuses on keeping the output format exactly as Node.js does it for console.log.

Installing

$ npm install manakin --save

Usage

require('manakin').global; // set colors globally

console.warn(val1, val2, ...); // yellow text output
console.error(val1, val2, ...); // red text output

See also: Full API.

License

Copyright © 2016 Vitaly Tomilov; Released under the MIT license.