Undocumented Node Migrate options→
Migrate is a very useful migration framework for Node. Unfortunately, its documentation is lacking in places. Here are a couple of handy options not covered by the README.
Migrate is a very useful migration framework for Node. Unfortunately, its documentation is lacking in places. Here are a couple of handy options not covered by the README.
TypeScript's strict type checking can cause problems when working with numeric environment variables. Here's a solution.
By default, a Node.js stream expects to operate on a Buffer
or a Uint8Array
. We can override this by telling the stream to use "object mode".
The default "recurse depth" of console.dir
is 2. This is rarely what I want.
The Node CLI supports a "require" flag, which allows you to preload a module when running Node.
Node isn't managed by npm
. As such, there's no guarantee that running npm install -D @types/node
will install the correct type definitions for your version of Node.
A monthly round-up of blog posts, projects, and internet oddments.