banner 728x90

Better Node.js console Dumps with console probe

In Mobile Web Development 14 views
banner 728x90

Writing JavaScript in the Node.js environment has always felt a bit more difficult; probably because browser developer tools have become incredibly powerful, interactive and visually appealing. The use of console.log on the client side is not the best of experiences and is clearly not interactive.

Although it is not interactive, I have found that the console probe is an improvement over console.log giving me marked properties, lengths and a nice visual tree structure.

const probe = require (& # 39; console-probe & # 39;)

const donut = {
& Id; # & # 39 ;: & # 39; 0001 & # 39 ;,
& # 39; type & # 39 ;: & # 39; donut & # 39 ;,
& # 39; Name & # 39 ;: & # 39; Cake & # 39 ;,
& # 39; description & # 39 ;: & # 39; A small deep-fried cake with sweetened dough, usually in the form of a ball or ring.
& # 39; ppu & # 39 ;: 0.55,
& # 39; just & # 39 ;: where,
& # 39; Studs & # 39 ;:
,
// .....


// Mark neatly to console
const prober = probe.get ()
test device (donut)

gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== - Better Node.js console Dumps with console probe

consolesonde is one of those beautiful, luxurious utilities that can make debugging in a static environment just a bit better!


banner 728x90
author
Author: 
    Script & Style Show: Episode 1: Marc Grabanski
    Script & Style Show: Episode 1: Marc Grabanski
    During this second episode of the Script
    AWS AppSync region expansion and new functions for API keys
    AWS AppSync region expansion and new functions for API keys
    AWS AppSync, a managed GraphQL service with
    What is the best time to involve your mobile app users?
    What is the best time to involve your mobile app users?
    When talking to customers about mobile analysis,
    How to make a Twitter bot with Node.js
    How to make a Twitter bot with Node.js
    Twitter bots have been in the news

    Leave a reply "Better Node.js console Dumps with console probe"

    Must read×

    Top