diff --git a/src/logger.js b/src/logger.js index 8725433..2c2997e 100644 --- a/src/logger.js +++ b/src/logger.js @@ -12,7 +12,31 @@ const pattern = /at (?:(.*) )?\(?([^(]*):(\d+):(\d+)\)?$/, separatorPattern = new RegExp(sep); /** - * Various console helpers. + * Dead-simple, composable, isomorphic, cross-browser wrapper for `console.log`. + * + * + *
> log('Colorful ', bold(red('R'), green('G'), blue('B')), ' logs are ', underline('very'), ' easy!');
< Colorful RGB logs are very easy!
* * @module logger */ @@ -272,9 +296,9 @@ export function formatErrorMarker(message: string = 'Error') { * // var log = logger.log; * // var consoleStyles = logger.consoleStyles; * - * const {red, green, blue, bold} = consoleStyles; + * const {red, green, blue, bold, underline} = consoleStyles; * - * log('Colorful ', bold(red('R'), green('G'), blue('B')), ' logs are ', bold('very'), ' easy!'); + * log('Colorful ', bold(red('R'), green('G'), blue('B')), ' logs are ', underline('very'), ' easy!'); */ export function log(...messages: Array) { const msg = new Message({ansi: ['', ''], css: ''}).addMessages(messages); diff --git a/src/watch.js b/src/watch.js index 8f51a61..3860097 100644 --- a/src/watch.js +++ b/src/watch.js @@ -9,8 +9,8 @@ const client = new Client(), {yellow} = consoleStyles; /** - * Using the Facebook Watchman, watches the directory `dir` for changes of files with extension `type` and runs - * `callback` when a change is detected. + * Using the [Facebook Watchman](https://facebook.github.io/watchman/), watches the directory `dir` for changes of files + * with extension `type` and runs `callback` when a change is detected. * * This watcher's only goal is performance, hence the simplicity. *