mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
parent
57c877c443
commit
6f5dbfe102
5 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ The main modules exports a single function name `color` which is a function that
|
|||
provides chaining to stack colors. Basic usage looks like this:
|
||||
|
||||
```ts
|
||||
import { color } from "https://deno.land/x/colors/main.ts";
|
||||
import { color } from "https://deno.land/x/std/colors/mod.ts";
|
||||
|
||||
console.log(color.bgBlue.red.bold("Hello world!"));
|
||||
```
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
import { color } from "main.ts";
|
||||
import { color } from "./mod.ts";
|
||||
|
||||
console.log(color.bgBlue.red.bold("Hello world!"));
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { assertEqual, test } from "../testing/mod.ts";
|
||||
import { color } from "main.ts";
|
||||
import "example.ts";
|
||||
import { color } from "./mod.ts";
|
||||
import "./example.ts";
|
||||
|
||||
test(function singleColor() {
|
||||
assertEqual(color.red("Hello world"), "[31mHello world[39m");
|
2
test.ts
2
test.ts
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env deno --allow-run --allow-net --allow-write
|
||||
import { run } from "deno";
|
||||
|
||||
import "colors/main_test.ts";
|
||||
import "colors/test.ts";
|
||||
import "datetime/test.ts";
|
||||
import "examples/test.ts";
|
||||
import "flags/test.ts";
|
||||
|
|
Loading…
Reference in a new issue