2ality blog (INACTIVE)
@2ality
Followers
5K
Following
133
Media
5
Statuses
424
INACTIVE ACCOUNT. How to follow 2ality: https://t.co/X2ElSu6ojE
Munich, Germany
Joined January 2011
Getting started with Mastodon https://t.co/49yH6DIh2l
2ality.com
In this blog post, I’d like to explain how to get started with Mastodon.
1
5
14
JavaScript metaprogramming with the 2022-03 decorators API https://t.co/DLKHkiyPoW
2ality.com
JavaScript decorators have finally reached stage 3! Their latest version is already supported by Babel and will soon be supported by TypeScript. This blog post covers the 2022-03 version (stage 3) of...
0
7
20
How to write CommonJS exports that can be name-imported https://t.co/oVpw2Ok0Ha
2ality.com
This blog post explores how to write CommonJS modules so that their exports can be name-imported from ESM modules on Node.js.
0
5
12
Running cross-platform tasks via npm package scripts https://t.co/N9rNaLsyrj
2ality.com
The npm package manager lets us define small shell scripts for tasks and execute them via npm run. In this blog post, we explore how that works and how we can write them in a way that works across...
0
5
13
I did a minor redesign of 2ality. New features: * Dark mode (only automatic, no toggle) * Better printing * Better layout on small devices * Index pages show excerpts of posts https://t.co/THpO4vVujl
2
1
23
Parsing command line arguments with `util.parseArgs()` in Node.js https://t.co/pjgibFXbvj
2ality.com
In this blog post, we explore how to use the Node.js function parseArgs() from module node:util to parse command line arguments.
0
10
16
Node.js: creating ESM-based shell scripts for Unix and Windows https://t.co/7wpEbFyivP
2ality.com
In this blog post, we learn how to implement shell scripts via Node.js ESM modules. There are two common ways of doing so: We can write a stand-alone script and install it ourselves. We can put our...
0
5
11
TypeScript: checking at compile time if an Array lists all property keys https://t.co/Q3bgzaLp4f
2ality.com
In this blog post, we use TypeScript to ensure that an object stays in sync with an Array that lists its properties.
0
1
5
Update of “Publishing and consuming ECMAScript modules via packages – the big picture”: Complete rewrite of section “Packages: JavaScript’s units for software distribution” https://t.co/mK2mftP6Hv
2ality.com
The ecosystem around delivering ECMAScript modules via packages is slowly maturing. This blog post explains how the various pieces fit together: Packages – JavaScript’s units for software distribut...
1
1
6
Working with file system paths on Node.js https://t.co/V8IbPgdQhn
2ality.com
In this blog post, we learn how to work with file system paths and file URLs on Node.js.
0
3
14
Executing shell commands from Node.js https://t.co/HL8EOYOT6L
2ality.com
In this blog post, we’ll explore how we can execute shell commands from Node.js, via module 'node:child_process'.
1
4
17
Ecma International approves ECMAScript 2022: What’s new? https://t.co/VAUVWpgBWi
2ality.com
On 22 June 2022, the 123nd Ecma General Assembly approved the ECMAScript 2022 language specification, which means that it’s officially a standard now. This blog post explains what’s new.
1
18
34
Running Windows/ARM on Apple Silicon Macs via UTM https://t.co/iZJTy7VAaU
2ality.com
UTM is a free virtualization software that runs Windows/ARM on Apple Silicon Macs. This blog post explains how to use it.
0
3
16
Processing Arrays non-destructively: for-of vs. .reduce() vs. .flatMap() https://t.co/LVei33eGOc
2ality.com
In this blog post, we look at three ways of processing Arrays: The for-of loop The Array method .reduce() The Array method .flatMap() The goal is to help you choose between these features whenever...
0
4
22