blob: 6fc004cda9eb21cb59c84fb80cb9460e427e8d90 [file] [log] [blame]
'use strict';
const path = require('path');
const spawn = require('cross-spawn');
module.exports = function(file) {
try {
spawn(
process.execPath,
[path.join(__dirname, '_trash.js'), file],
{'stdio': ['ignore', 'ignore', 'ignore'], 'detached': true}
).unref();
} catch(e) {
console.log(e)
}
};