Skip to content

Commit d01942b

Browse files
author
Callan Peter Milne
committed
(fix):stdout
1 parent 35c890e commit d01942b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bin/entity-svc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ const app = express();
2323

2424
const pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json'));
2525

26-
process.stdout.write(`eviratec/entity-svc@v${pkg.version}\n`);
27-
process.stdout.write(`Copyright (c) 2017 Callan Peter Milne\n`);
26+
writeOut(`eviratec/entity-svc@v${pkg.version}`);
27+
writeOut(`Copyright (c) 2017 Callan Peter Milne`);
2828

2929
require('../routes')(app);
3030

3131
app.listen(5002, function () {
32-
process.stdout.write(`Web service listening on port 5002\n`);
32+
writeOut(`Web service listening on port 5002`);
3333
});
34+
35+
function writeOut (msg) {
36+
process.stdout.write(`!> ${msg}\n`);
37+
}

0 commit comments

Comments
 (0)