Norway


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.  Using console.log on the client side isn’t the best of experiences and obviously isn’t interactive.


Though not interactive, I’ve found that console-probe is an improvement over console.log, providing me highlighted property types, lengths, and a nice visual tree view.


const probe = require('console-probe')

const donut = {
  'id': '0001',
  'type': 'donut',
  'name': 'Cake',
  'description': 'A  fried cake of sweetened dough, typically in the shape of a ball or ring.',
  'ppu': 0.5,
  'common': true,
  'batters':
  {
    'batter':
    [
      { 'id': '01', 'type': 'Regular' },
      { 'id': '02', 'type': 'Chocolate' },
      { 'id': '03', 'type': 'Blueberry' },
      { 'id': '04', 'type': "Devil's Food" }
    ]
  },
  // .....


// Highlight nicely to console
const prober = probe.get()
prober(donut)


- console probe - Better Node.js Console Dumps with console-probe

console-probe is one of those nice, luxury utilities that can make debugging in a static environment just a bit better!


  • Introducing MooTools Templated  - mootools250 - Better Node.js Console Dumps with console-probe

    One problem with creating UI components with the MooTools JavaScript framework is that there isn’t a great way of allowing customization of template and ease of node creation. As of today, there are two ways of creating: new Element Madness The first way to create UI-driven…

  • How to Create a RetroPie on Raspberry Pi – Graphical Guide  - retropie logo - Better Node.js Console Dumps with console-probe

    Today we get to play amazing games on our super powered game consoles, PCs, VR headsets, and even devices.  While I enjoy playing new games these days, I do long for the retro gaming systems I had when I was a kid: the original Nintendo…

  • Create Digg URLs Using PHP  - digg guy - Better Node.js Console Dumps with console-probe

    Digg recently came out with a sweet new feature that allows users to create Tiny Digg URLs which show a Digg banner at the allowing easy access to vote for the article from the page. While I love visiting Digg every once in a…

  • MooTools History Plugin  - JavaScriptListImage - Better Node.js Console Dumps with console-probe

    One of the reasons I love AJAX technology so much is because it allows us to avoid unnecessary page loads.  Why download the header, footer, and other static multiple times if that specific never changes?  It’s a waste of , processing, and bandwidth.  Unfortunately…



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here