Skip to content

Instantly share code, notes, and snippets.

@RoyalIcing
Created September 11, 2021 05:34
Show Gist options
  • Save RoyalIcing/4671572a3f18cf4a7d114bf034d9c7cc to your computer and use it in GitHub Desktop.
Save RoyalIcing/4671572a3f18cf4a7d114bf034d9c7cc to your computer and use it in GitHub Desktop.
`in` as pipeline keyword
// See: https://twitter.com/buildsghost/status/1436394640861646848
envars
|> Object.keys(in)
|> in.map(envar => `${envar}=${envars[envar]}`)
|> in.join(' ')
|> `$ ${in}`
|> chalk.dim(in, 'node', args.join(' '))
|> console.log(in)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment