UNPKG

record-desktop

Version:

Record gifs and take screenshots on linux, built with electron.

13 lines (8 loc) 319 B
#!/usr/bin/env node const electronPath = require('electron-prebuilt'); const childProcess = require('child_process'); const args = process.argv.slice(2); args.unshift(__dirname); const env = Object.create(process.env); env.NODE_ENV = 'production'; childProcess.spawn(electronPath, args, { stdio: 'inherit', env });