Questions tagged [chalk]

51 questions
0
votes
1 answer

how to add array to operators?

i just need a yes or a no and possibly a point in the right direction :) i would like to know how would i be able even do this, chalk is just the same as colors.red, or colors.blue, its just chalk.red or chalk.blue but i would like to make an array…
Ben Wall
  • 67
  • 2
  • 9
0
votes
1 answer

chalk.bgHex is not a function

I'm using chalk version ^1.1.3 No idea why it's saying that the method is not recognized: const chalk = require('chalk'), _ = require('lodash'), info = chalk.yellow, green = chalk.green, script = chalk.bgHex('#ebd2f8') Error: chalk.bgHex is…
Dark Matter
  • 29
  • 2
  • 9
0
votes
1 answer

spark for typescript syntax

I try to use Spark with TypeScript but when I write this Spark.get("/facture", (req, res) => { chalk.red('Hello test'); chalk.green('Hello word'); }) It return me undefined but when I write only 1 line it works Spark.get("/facture",…
0
votes
1 answer

Gulp - Changing error text color in Terminal with chalk

Here's my gulpfile.js var gulp = require('gulp'); var sass = require('gulp-ruby-sass'); var chalk = require('chalk'); gulp.task('sass', function() { return sass('assets/scss/*.scss') .on('error', sass.logError) …
-1
votes
1 answer

Gatsby theme yarn workspaces

May you help me with an error in Gatsby? When I use yarn workspaces to start the development of theme, I get an error while installing the Gatsby dependency on my workspace. Look this. error…
-1
votes
1 answer

Chalk would not log colored

Chalk does not log colored in Firebase logs, which I get by firebase functions:log, it should have some colors applied because of chalk; but it is not being applied. I'm 100% sure chalk is installed. Example: import chalk from "chalk"; const success…
Talha Talip Açıkgöz
  • 1,821
  • 4
  • 15
  • 28
1 2 3
4