Search results for 2014 06 23 using node js in production ?utm_source=nodeweekly

Rethinking DOM Traversal

by Brian Rinaldi

…= elem.parentNode; matches = []; for ( ; n; n = n.parentNode ) { if ( n.nodeType == 9) { return matches; } else if (n.nodeType == 1) matches.push( n…

Resources for Getting Into NodeJS

by Eric Terpstra

Eric Tersptra provides some guidance for getting started using Node.js. Node.js has exploded in popularity since its relatively recent introduction in 2009. A plethora of books, videos, courses, and articles…

Creating Custom Widgets with JavaScript in Wakanda

by Saad Mousliki

…'<canvas></canvas>’; // Customize the canvas attributes using JQuery $node.find(“canvas”).attr(‘id’, ‘canvas_’ +, .attr(‘width’, this.node.clientWidth), .attr(‘height’, this.node.clientHeight); if (!window.Designer) { var that = this; this.signaturePad = new SignaturePad($node.find(‘canvas’)[0], { minWidth: this.minWidth(),…

Building Multiplayer Games with Node.js and Socket.IO

by Eric Terpstra

…experience. While experimenting with Node.js and the Socket.IO library, I found a perfect opportunity to not only learn some interesting new technologies, but also experiment with using the web and…

A JavaScript Build System Shootout: Grunt vs. Gulp vs. NPM

by Nicolas Bevacqua

…It’ll load the jshint-stylish module to format the reporting output. var gulp = require(‘gulp’); var jshint = require(‘gulp-jshint’); gulp.task(‘test’, function () { return gulp .src(‘./sample.js‘) .pipe(jshint()) .pipe(jshint.reporter(‘jshint-stylish’)); }); You’re done!…

Automating Complex Workflows with Grunt Custom Tasks

by Ben Farrell

some vanilla JavaScript and Node.js. There are a number of FFMPEG wrappers out there that work with Node.js. I chose “ffmpeg-node”. At the time I was researching this project, a…

Taming Asynchronous JavaScript Programming with ECMAScript6

by Brian Rinaldi

…= require(‘underscore’) string = require(‘underscore.string’) linklib = require(‘linklib’) { using, _ } = require(‘./chain’).chain.init() using(jQuery) using(underscore) using(string) using(console) using(linklib) getUser = (user) -> _(“{user}”) .get() .extractLinks() .filter( -> /package/.test(arguments[0]) )…

2014 – What Web Developers Will Need to Know

by Brian Rinaldi

…help shed some light on what web developers might need to know for 2014. Specifically, I asked, “Looking into 2014, what do you think will have the most impact on…

BDD in JavaScript with CucumberJS

by Todd Anderson

err; ^ Error: Cannot find module ‘./script/model/grocery-list’ at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/Users/toddanderson/Documents/workspace/custardbelly/cucumberjs-example/features/step_definitions/add-item.steps.js:3:19) Which is understandable since we haven’t defined any…

Audio Synthesis in JavaScript

by Brian Rinaldi

this, you’ll create two new nodes, an oscillator node and a gain node. A gain node is usually used to change the volume of a sound, but we’ll be using