UNPKG

298 BJavaScriptView Raw
1const rimraf = require('rimraf')
2const path = require('path')
3const ClinicDoctor = require('../index.js')
4
5const doctor = new ClinicDoctor()
6doctor.collect([
7 process.execPath,
8 path.join(__dirname, 'cmd-no-cluster.cluster.js')
9], (err, result) => {
10 rimraf.sync(result)
11 if (err) throw err
12})