GithubHelp home page GithubHelp logo

mattrichmo / chalker Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 5.94 MB

{Chalk Logger for objects} Rainbow JSON Stringifier - Recieves an object as an input and then outputs a JSON Stringify where each nested level is a different colour. Great for debugging.

License: MIT License

JavaScript 100.00%
chalk colour console console-log design javascript javascript-library json json-stringify nodejs rainbow debugger debugging debugging-tool logging

chalker's Introduction

Chalker

Chalker

Rainbow Logger for Your JSON Objects - Chalk Add-On

Recieves an an object as an argument and it will go through and chalk a new colour for each layer. Great for debugging and visualization.

Optional Args

indentNum \\ the indent number 
startingDepth \\ the starting level to display
maxDepth \\ the number of levels to print
verbose\\ True or False. If true it will print everything. If false (default) it was concatenate strings and arrays

Example:

chalker(testObject, 4, 0, null, true)

Example Output

Example Object

Verbose: Verbose

which is the result of:

Example Code

Add More Colours

Colours are all formatted like this:Example:

    {
        name: 'Almond',
        hex: '#EFDECD',
        complimentary: `#CD9575`,
        shades: {
            dim: {
                name: 'Almond (Dim)',
                hex: '#D9D0C1'
            },
            bright: {
                name: 'Almond (Bright)',
                hex: '#F4E0E6'
            },
        }
    },

chalker's People

Contributors

mattrichmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.