Kaizen Today I Learned by Ville Säävuori

Posts tagged node

Export Firebase Database to JSON

Even though Goole Firebase documents look and feel like JSON, it’s surprisingly painful to export a database as a plain JSON file. (I assume this is 100% because they want to keep the vendor lock-in.) Not surprisingly there are NPM packages that help. Here’s the fastest and simplest way I managed to export a very small Firebase DB to JSON:

· Read the full article →

Resolving 'fatal error: 'vips/vips8' file not found' on macOS

I was having problems installing dependencies to a not too old frontend project using yarn. The installation failed with a long traceback which included the following: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o LIBTOOL-STATIC Release/nothing.a warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: Release/nothing.a the table of contents is empty (no object file members in the library define global symbols) TOUCH Release/obj.

· Read the full article →

Setting Up macOS for Web Development

Getting your development environment running and configured has become much easier over time but it’s still a hassle to get everything set up and configured from scratch. These notes are a continuously evolving task list for my personal setup. Applications Install Docker desktop, configure it as needed and remember to authenticate it.

· Read the full article →

Testing Tauri Beta

Tauri is an interesting lightweight alternative to Electron which recently graduated to beta. These are my first impressions and experiences trying it out. Installing and Hello World Tauri docs are pretty good for a project that is just barely reached beta. Tauri can be added as an dependency to any Node project but before you can do that you need to install some Rust tooling first.

· Read the full article →

Fetching JSON With Playwright

I wrote my first project using Playwright, an interesting headless browser API similar to Puppeteer but for all major browsers (Chromium, Firefox and Webkit). My first hurdle was reading a simple JSON response as opposed to a normal HTML page. The docs suggest attaching a listener to all requests and filtering what you want there, but I found the following to be easiest way:

· Read the full article →

Installing local NPM packages with Yarn

I’ve been publishing my first NPM packages lately and have deeded to install NPM packages locally for testing. There are two ways to do this and they both have their separate use cases. Using yarn add First, you can install local packages with Yarn simply by giving the package path as argument for add:

· Read the full article →