JavaScript alternative to range() function to iterate over array items

JavaScript doesn’t have a built-in range() function. This can be useful to perform an iteration a certain number of times. As an alternative to this, you can use a JavaScript array. If you don’t care about the actual values from range(), and just want to iterate “x” number of times, you can do so by … Read more JavaScript alternative to range() function to iterate over array items

Quick Solution for npm publish “Operation Not Permitted” Error

I recently set up Verdaccio, an open source npm private registry, as a Docker container. This is incredibly easy, using a couple of PowerShell commands: When I tried to publish a scoped npm package to this private registry, I received an ugly, generic-looking error message (see below). PS C:\git\node-diskscan> npm publish npm notice npm notice … Read more Quick Solution for npm publish “Operation Not Permitted” Error

Live Reloading for Developing Electron Apps

While you’re developing an Electron-based application, it’s nice to be able to make changes without having to manually stop and restart your application. To aid in that, someone created an NPM package named electron-reload, which integrates easily with your application, requiring minimal changes, and giving you live-reload functionality. Simply install the package as a development-only … Read more Live Reloading for Developing Electron Apps