2017-05

ES2018: RegExp lookbehind assertions

[2017-05-16] dev, javascript, esnext, es2018, regexp

The proposal “RegExp Lookbehind Assertions” by Gorkem Yakin, Nozomu Katō, Daniel Ehrenberg is part of ES2018. This blog post explains it.

ES2018: RegExp named capture groups

[2017-05-15] dev, javascript, esnext, es2018, regexp

The proposal “RegExp Named Capture Groups” by Gorkem Yakin, Daniel Ehrenberg is at stage 4. This blog post explains what it has to offer.

Module specifiers: what’s new with ES modules?

[2017-05-08] dev, javascript, esnext, jsmodules

This blog post describes how module specifiers (the path-like IDs of modules) change with ECMAScript modules (ESM). There are a few subtle differences, compared to the familiar CommonJS module (CJS) style.

2017-04

ES2019: Functional pattern – flatMap

[2017-04-30] dev, javascript, es2019

In this blog post, we look at the operation flatMap, which is similar to the Array method map(), but more versatile.

Conditionally adding entries inside Array and object literals

[2017-04-28] dev, javascript, esnext, pattern

This blog post shows how you can conditionally add elements inside Array literals and properties inside object literals.

Transpiling dependencies with Babel

[2017-04-23] dev, javascript, esnext, npm, jsmodules, babel

Figuring out the best strategy for transpiling with Babel is tricky. This blog post proposes a new strategy, made possible by Babel’s preset-env.

Mastodon: like Twitter, but open and federated

[2017-04-09] computers, decentralized, mastodon

Mastodon is like Twitter, but federated and based on open protocols. This blog post explains what that means and what it is like to use Mastodon. It also gives tips for using it.

Setting up multi-platform npm packages

[2017-04-01] dev, javascript, esnext, npm, jsmodules, babel

This blog post explains ways of targeting multiple platforms via the same npm package.

2017-03

Two ES6 features that help with CommonJS modules

[2017-03-26] dev, javascript, esnext, commonjs, nodejs

Even without ES modules, ES6 is a joy to use in Node.js. Two ES6 features eliminate some of the redundancy of CommonJS syntax.

The new 2ality blog setup: statically generated via isomorphic React, hosted on Amazon S3

[2017-03-21] dev, javascript, nodejs, static site generation, 2ality

The new setup for the 2ality blog was literally years in the making: First, I experimented with various approaches. Then fine-tuning took a while, too. In this blog post I explain the details.