GithubHelp home page GithubHelp logo

better-console's People

Contributors

merriam avatar mohsen1 avatar vasiliicuhar avatar wormss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

better-console's Issues

Issue with browserify and IE9

This is kind of obscure, but I wanted to let you know about it regardless. I have a project in which I include your better-console module for much nicer debugging/output while I work on features in Node. When I convert my code to be used in the browser with browserify, IE9 breaks. If I remove better-console from my application and re-browserify it, everything works fine.

Update demo snippet to include `var` keyword

The demo snippet in your README.md has console = require('better-console'); but when I tried this I wasn't getting colorful output in my terminal. By adding in the var keyword in front of this line I did get colored output.

Interesting

When I was looking for something like this 8 month ago, I couldn't find anything, so I wrote my own library - manakin.

I've just done some testing for the output consistency, and seems the same, though we go about it in very different ways ๐Ÿ˜„, so for example, I do not use any third-party color library at all.

Also, you do not support global colors override, which I did, in addition to the local usage.

Nicely done though! ๐Ÿ˜‰

`console.table` error

Please check this code

var myArray=[{a:1,b:2,c:3},{a:1,b:2,c:3,d:4},{k:11,f:22},{a:1,b:2,c:3}]
console.table(myArray)

in browser and in node.
Node output is:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”
โ”‚ (index) โ”‚ a   โ”‚ b   โ”‚ c   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 0       โ”‚ 1   โ”‚ 2   โ”‚ 3   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 1       โ”‚ 1   โ”‚ 2   โ”‚ 3   โ”‚ 4 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 2       โ”‚ 11  โ”‚ 22  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 3       โ”‚ 1   โ”‚ 2   โ”‚ 3   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”˜

RangeError: Maximum call stack size exceeded

NodeJS version v12.15.0 v14.18.0.

------------------ log ---------------------------
root@4f133ebe635c:~/my_project# node
Welcome to Node.js v14.18.0.
Type ".help" for more information.

var console = require('better-console');
undefined
console.log("This is a log information");
Uncaught RangeError: Maximum call stack size exceeded
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)
at Object.log (/root/my_project/node_modules/better-console/index.js:22:17)

NO LICENSE file !

Hi, we would like to use this in our project, but we need to be able to cite a license file. I noticed in the package.json that the license is BSD. Any chance you could add a file explicitly stating it ?
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.