routie dev init since i didn't adhere to any proper guidance up until now

This commit is contained in:
2026-04-29 22:27:29 -06:00
commit e1dabb71e2
15301 changed files with 3562618 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/**
* @author Toru Nagashima
* @copyright 2016 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const spawn = require('../../lib/spawn')
// ------------------------------------------------------------------------------
// Public Interface
// ------------------------------------------------------------------------------
module.exports = function spawnWithKill (command, args) {
return new Promise((resolve, reject) => {
const cp = spawn(command, args, {})
cp.on('exit', resolve)
cp.on('error', reject)
setTimeout(() => cp.kill(), 1000)
})
}