JavaScript Tutorials

  • By
    Extend Native Prototypes in Node.js

    As someone who was on the legendary MooTools JavaScript team, I have some affection for extending the prototypes of native objects.  Of course the practice of extending prototypes is taboo these days as browser vendors are iterating and implementing new specs more quickly than the IE6 era, but extending natives in Node.js...

  • By
    301 Redirect with Express

    If you've created a site using Node.js, there's a great chance you've used the Express framework.  Express has turned into a massive project and for good reason:  it's loaded with useful functionality, an easy API, and massive community support.  On of my recent projects was...

  • By
    Activate Service Workers Faster

    Service workers are great for many purposes:  speed, offline, cache control, and more.  You can view many code service worker usage samples over at the Service Worker Cookbook, if you're so interested.  One of those recipes, Immediate Claim, is as important and useful as it provides...

  • By
    Run Your Own Scraping API with PhearJS

    So-called 'client-side dynamic rendering' gives clients cool experiences, but makes it harder for machines to comprehend. In case you want to do data mining, scrape websites or send static versions of your slick single-page application to Altavista, you essentially need a browser in the loop. This...

  • By
    Convert Image to ASCII Art with Node.js

    There are many people out there that don't appreciate ASCII art;  we call those people "idiots".  ASCII art has been used forever and remains, in my opinion, a feat of programming and creativity.  There's a project called image-to-ascii which doesn't just create ascii art but does so from...

  • By
    JS Charting:  Google Sheets

    In this article, we will chart data from a publicly accessible google spreadsheet feed (via JSON) and create a dashboard using the JS Charting library. By consuming the spreadsheet in this way, updated results will show live as soon as any shared edits are made...

  • By
    JS Charting:  Mapping

    JS Charting comes integrated with geographic mapping support, including optimized data files for all country, province and state maps without the need of a separate product or add-on. What's more interesting is that the API for mapping is the same as that used for regular...

  • By
    Show Images in Console with Node.js console-png

    Introducing colors into the command line makes console reading much easier which is why finding Chalk was a life-changing event for me.  I started digging deeper  into making the console more graphical and I found another module that could bring the console to life:  console-png! The JavaScript Assuming...

  • By
    Convert PSD to PNG with Node.js

    Automating and manipulating media is a fascination of mine, partly because I don't understand the magic behind it and partly because the idea of turning one thing into another is fun and useful.  That latest media tool that has piqued my interest is a JavaScript tool called psd.js. psd.js...

  • By
    Offline Recipes for Service Workers

    "Offline" is a big topic these days, especially as many web apps look to also function as mobile apps.  The original offline helper API, the Application Cache API (also known as "appcache"), has a host of problems, many of which can be found in Jake Archibald's...