mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
fix(std): Don't use JSDoc syntax for browser-compatibility headers (#8960)
This commit is contained in:
parent
41a4a34aee
commit
62465ca4ee
14 changed files with 27 additions and 26 deletions
|
@ -1,16 +1,16 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
/** A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
|
||||
* on npm.
|
||||
*
|
||||
* ```
|
||||
* import { bgBlue, red, bold } from "https://deno.land/std/fmt/colors.ts";
|
||||
* console.log(bgBlue(red(bold("Hello world!"))));
|
||||
* ```
|
||||
*
|
||||
* This module supports `NO_COLOR` environmental variable disabling any coloring
|
||||
* if `NO_COLOR` is set.
|
||||
*
|
||||
* This module is browser compatible. */
|
||||
// A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
|
||||
// on npm.
|
||||
//
|
||||
// ```
|
||||
// import { bgBlue, red, bold } from "https://deno.land/std/fmt/colors.ts";
|
||||
// console.log(bgBlue(red(bold("Hello world!"))));
|
||||
// ```
|
||||
//
|
||||
// This module supports `NO_COLOR` environmental variable disabling any coloring
|
||||
// if `NO_COLOR` is set.
|
||||
//
|
||||
// This module is browser compatible.
|
||||
|
||||
const noColor = globalThis.Deno?.noColor ?? true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue