Shell commands with Node

Running CLI Node scripts, capture the return value of a shell command:

const execSync = require('child_process').execSync;
const nodeVer = execSync('node -v', { encoding: 'utf8' });

Shell command reports in the CLI:

const execSync = require('child_process').execSync;
execSync('npm -g ls', { stdio: 'inherit' });

Mint Julio

  • 1 jigger St. Germaine elderflower liquor
  • 3 jiggers tequila repisado
  • 1/2 lemon
  • 1 tsp honey
  • Fizzy water
  • 3 mint leaves

Crush the mint in shaker with muddler. Add liquor, lemon, honey. Stir to dissolve the honey before adding ice. Ice. Shake. Pour over a couple cubes, top with fizzy water. Garnish with a sprig of mint.