• Home
  • Books
  • Jest
  • Alpine.js
  • JavaScript
  • Node
  • More...
  • Search
  • About
  • Gear & Setup

CLI

A collection of 6 posts

#git #cli

git diff by word

The default diffing algorithm for git diff is by lines. There are scenarios where it’s more interesting to diff by word, for example: long lines. In that case it’s useful to use --word-diff=color. ...

  • Hugo Di Francesco
    Author
1 min read
#git #github #cli #vscode

git/GitHub CLI set editor to vim or VSCode

The GitHub CLI (gh binary), defaults to nano as its editor. Developers may want to set it to vim or VSCode to keep it in line with the git CLI’s behaviour. ...

  • Hugo Di Francesco
    Author
2 min read
#cli

Convert images to data URLs at the command line (Mac OS)

Converting images to data URLs using the Mac OS command line is a fun demonstration of the command line’s capabilities. To convert an image file to a data URL, we can use the following shell function: function img-data() { TYPE=$(file --mime-type -b $1) ENC=$(base64 $1) ech ...

  • Hugo Di Francesco
    Author
3 min read
#cli #terminal #mac

Catalina "Apple cannot check for malicious software" Command Line Fix

Fix “X can’t be opened because Apple cannot check for malicious software” and “Developer or app can’t be verified” using the command line. Mac OS X Catalina has introduced a new host of permission issues. There are workarounds for applications ...

  • Hugo Di Francesco
    Author
2 min read
#node #sequelize #git #cli #javascript

Progress and roadblocks: a journey into open-source

Enhancing generators for ES6 in the Sequelize CLI This is the story of my discovery of ES6-class style model definitions with Sequelize (see Using ES6 classes for Sequelize 4 models). The realisation that the current Sequelize CLI model generator didn’t support it (as is ...

  • Hugo Di Francesco
    Author
6 min read
#node #javascript #cli

How to make beautiful, simple CLI apps with Node

Channel your inner Sindre Sohrus and ship a beautifully simple CLI app using Node. Command line apps are a neat way to package repetitive tasks. This will walk you through some tools that are useful to build CLI apps. ...

  • Hugo Di Francesco
    Author
3 min read
Page 1 of 1 

Get The Jest Handbook (100 pages)

Take your JavaScript testing to the next level by learning the ins and outs of Jest, the top JavaScript testing library.

Find out more close
Code with Hugo
Latest Posts Twitter Github Medium