extra tests, specific benchmark, example in readme
This commit is contained in:
parent
7d238e2ebb
commit
e5ea8df1e5
5 changed files with 26 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ const createStyler = (open, close, parent) => {
|
|||
const createBuilder = (self, _styler, _isEmpty) => {
|
||||
const builder = (...arguments_) => {
|
||||
if (Array.isArray(arguments_[0])) {
|
||||
// Called as a template litteral, e.g. chalk.red`2 + 3 = {bold ${2+3}}`
|
||||
// Called as a template literal, e.g. chalk.red`2 + 3 = {bold ${2+3}}`
|
||||
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue