Blog Articles

Creating your first Node.js module

Wirtten on 06/27/2016, by Kevin Chisholm | Comments

Modules are one of the most powerful aspects of Node.js. Organizing your code into modules enforces best-practices. Examples include separation of concerns, code-reuse and test-ability. Publishing a module to the NPM registry is a great way to share your module with others, but we won't discuss that here. In this article, we will create a custom Node.js module for local use. Specifically, we...

Read more

Nwjs

Wirtten on 06/09/2016, by John Anderson | Comments

Over the past year, JavaScript has experienced a tremendous increase in versatility due in large part to the Node interpreter, which allows JavaScript to run locally. In this post, I’ll talk about Nw.js, which is a framework for building and compiling native desktop applications using JavaScript, CSS, and HTML, and is powered by Node. I’ll start with the UI of a simple file monitoring application...

Read more

Node.js time-based scheduling with Node Schedule

Wirtten on 06/09/2016, by Kevin Chisholm | Comments

Node.js time-based scheduling with Node Schedule Sometimes, you need to schedule things. In everyday life, this is a common task. For example, you might have a team meeting every Monday through Friday at 9:30AM. Or perhaps you call your parents every Sunday 20 minutes after the hour. Some people find it relaxing to play softball in the park the first Thursday of each month. These are all examples...

Read more

Cross-Origin Resource Sharing in JavaScript Frameworks

Wirtten on 06/09/2016, by Zack Liston | Comments

Why Do You Need CORS? Web developers encounter the Same Origin Policy when they need to use resources in more than a single domain. Modern applications leverage CDNs, APIs and services hosted on multiple domains, so developers often need to be able to bypass the Same Origin Policy restrictions. Developers working with nodeJS and other JavaScript frameworks may need to expose resources in an...

Read more

Creating popup Chrome extensions that interact with the DOM

Wirtten on 06/09/2016, by David Silva | Comments

Creating popup Chrome extensions that interact with the DOM Chrome extensions can be very useful for your projects, it can let your users interact with other sites and improve their experience. There are some really cool ones, that you might be familiar with, they provide the users with everything from ad-blocking, to saving content from a website on Evernote. Creating Chrome extensions is not...

Read more

Get Over JSON: Implementing Protocol Buffers with Node.js

Wirtten on 06/01/2016, by Azat Mardan | Comments

Get Over JSON: Implementing Protocol Buffers with Node.js and ProtoBuf.js There's a better alternative to the ubiquitous JSON as the communication protocol of the web. It's Protocol Buffers (protobuf). In a nutshell, protobuf offers a more dense format (faster processing) and provides data schemas (enforcement of structure and better compatibility with old code). Protocol Buffers were introduced...

Read more

Command Line Node

Wirtten on 06/01/2016, by Aaron Shirk | Comments

Command-line Node.js... bye bye bash? If I had to guess if node.js would every replace bash as a scripting language, I'd have to guess no. Needless to say, it's a very powerful scripting language used and loved by many. I certainly understand that. That said, bash is a bit arcane in its syntax, it's not very easy to learn, and unless you're a die-hard Unix guru or devops...

Read more

Express Apps

Wirtten on 05/16/2016, by Michael Benin | Comments

I’ve been writing express apps for about four years. In this blog post, I’ll share some of the best practices when it comes to security in Node.js express applications. The first thing I do when I come into a Node.js app is look at the package.json and check to see if there is an npm-shrinkwrap.json file. In my experience, it’s best not to rely on semver and version everything off exactly. I’ve...

Read more

Creating a Node.js web server in less than ten lines of code

Wirtten on 05/16/2016, by Kevin Chisholm | Comments

Node.js is a solid resource for front-end tooling. In fact, it is not uncommon for a developer to first learn about Node.js in this context. Grunt, Gulp and Bower have contributed to the popularity of this front-end build ecosystem. This article provides an introduction to one of other strengths of Node.js: acting as a web server. I do not think any organization would base their enterprise on a...

Read more

Ransom32

Wirtten on 05/10/2016, by John Anderson | Comments

This post is going to examine Ransom32, the first ransomware that is powered by JavaScript. JavaScript has been used for many years to attack by exploiting weaknesses in both Internet Protocol and Internet browsers. But despite its wide use for these nefarious purposes, the reach of JavaScript itself was limited to the browser, because it could not be run locally on a victim's machine. However,...

Read more

Pages