Category: npm

A Beginner’s Guide to Webpack 4 and Module Bundling

Webpack is a module bundlerWebpack has become one of the most important tools for modern web development. Primarily it’s a module bundler for your JavaScript but it can be taught to transform all of your front-end assets like HTML and CSS, even images. It can give you more control over the number of HTTP req...

10 Node.js Best Practices: Enlightenment from the Node Gurus

In my previous article 10 Tips to Become a Better Node Developer I introduced 10 Node.js best practices you could apply to your code today. This post continues in that vein with a further 10 best practices to help you take your Node skills to the next level. This is what we’re going to cover:Use npm scripts —...

10 Tips to Become a Better Node Developer in 2017

I started working with Node full-time in 2012 when I joined Storify. Since then, I have never looked back or felt that I missed Python, Ruby, Java or PHP — languages with which I had worked during my previous decade of web development. Storify was an interesting job for me, because unlike many other companies, Storif...

Host, Publish and Manage Private npm Packages with Verdaccio

[special]npm is the de facto JavaScript package manager and the npm registry the world’s biggest collection of code. But sometimes you need that extra privacy when developing an awesome new package. Be it because you’re working on a company project which is not meant to be shared with the public, your maste...

Polyfill JavaScript Only When You Need To

The following is a guest post by Pascal Klau, a trainee from South Germany, who dislikes unnecessary HTTP requests and broccoli. Pascal is going to explain way to use a polyfilling service in such a way that you might get away with not using it at all.The Situation We want to write JavaScript in the ES6 syntax. But s...

10 Tips and Tricks That Will Make You an npm Ninja

While there is much excitement about Facebook’s new Yarn project, the continuing success of Node.js owes much to its original package manager, npm. A few simple npm commands is all it takes to initialize a folder (npm init), download packages (npm install) and create tests (npm test) and custom scripts (npm run) ...

Yarn vs npm: Everything You Need to Know

Yarn is a new JavaScript package manager built by Facebook, Google, Exponent and Tilde. As can be read in the official announcement, its purpose is to solve a handful of problems that these teams faced with npm, namely:installing packages wasn’t fast/consistent enough, and there were security concerns, as npm a...

Yarn

From the didn’t see that coming news desk:We’re pleased to announce the open source release of Yarn, a collaboration with Exponent, Google, and Tilde. With Yarn, engineers still have access to the npm registry, but can install packages more quickly and manage dependencies consistently across machines or i...

Build a JavaScript Command Line Interface (CLI) with Node.js

As great as Node.js is for “traditional” web applications, its potential uses are far broader. Microservices, REST APIs, tooling, working with the Internet of Things and even desktop applications—it’s got your back. Another area where Node.js is really useful is for building command-line application...

Build a Music Streaming App with Electron, React & ES6

Developed by GitHub, Electron is a framework that allows you to leverage your web design skills to build slick, cross-platform desktop apps. In this tutorial, I’ll demonstrate how to combine the power of Electron with React, ES6 and the Soundcloud API to create a stylish music streaming app that will stream your ...