-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
100 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict' | ||
|
||
var Acho = require('..') | ||
var acho = Acho() | ||
|
||
acho.info('formatting plain text: hello world') | ||
acho.info('formatting with number interpolation %d', 123) | ||
acho.info('formatting with float interpolation %d', 3.14) | ||
acho.info('formatting with string interpolation %s', 'hello world') | ||
acho.info('formatting with object interpolation %j', {hello: 'world', foo: 'bar'}) | ||
acho.info('formatting with object interpolation %J', { | ||
hello: 'world', | ||
foo: 'bar', | ||
deep: { | ||
foo: 'bar', | ||
arr: [1, 2, 3, 4, 5] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters