Skip to content

Instantly share code, notes, and snippets.

@mcoimbra
Created October 26, 2023 21:24
Show Gist options
  • Select an option

  • Save mcoimbra/b616dcb002c0e4ac2d473cd5e33b1c02 to your computer and use it in GitHub Desktop.

Select an option

Save mcoimbra/b616dcb002c0e4ac2d473cd5e33b1c02 to your computer and use it in GitHub Desktop.
Package cross-os: Spawn is called (#45) and it is possible to manipulate the binary and arguments passed to it via the local pacakge.json.
'use strict'
const pkg = require('cross-os');
{
"dependencies": {
"cross-os": "^1.5.0"
},
"scripts" : {
"touch": {
"linux": "touch"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment