Icard/angular-clarity-master(work.../node_modules/karma/lib/detached.js

12 lines
316 B
JavaScript
Raw Permalink Normal View History

2024-07-16 14:55:36 +00:00
'use strict'
const fs = require('fs')
const Server = require('./server')
const configurationFile = process.argv[2]
const fileContents = fs.readFileSync(configurationFile, 'utf-8')
fs.unlink(configurationFile, function () {})
const data = JSON.parse(fileContents)
const server = new Server(data)
server.start(data)