main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
302 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Logs out a message if there is no format option set.
|
---|
5 | * @param {String} message - Message to log.
|
---|
6 | */
|
---|
7 | function log(message) {
|
---|
8 | if (!/=-(f|-format)=/.test(process.argv.join('='))) {
|
---|
9 | // eslint-disable-next-line no-console
|
---|
10 | console.log(message);
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | module.exports = log;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.