Skip to content

Commit

Permalink
Docs: Add error to usage and API
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Nov 29, 2018
1 parent 44d559a commit 6ad6ed5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ var log = require('fancy-log');

log('a message');
// [16:27:02] a message

log.error('oh no!');
// [16:27:02] oh no!
```

## API

### log(msg...)
### `log(msg...)`

Logs the message as if you called `console.log` but prefixes the output with the
current time in HH:MM:ss format.

### `log.error(msg...)`

Logs ths message as if you called `console.error` but prefixes the output with the
current time in HH:MM:ss format.

## License

MIT

0 comments on commit 6ad6ed5

Please sign in to comment.