0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00
Original: 92bbca8166
This commit is contained in:
Kitson Kelly 2019-01-11 12:18:21 +11:00 committed by Ryan Dahl
parent 57c877c443
commit 6f5dbfe102
5 changed files with 5 additions and 5 deletions

View file

@ -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: provides chaining to stack colors. Basic usage looks like this:
```ts ```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!")); console.log(color.bgBlue.red.bold("Hello world!"));
``` ```

View file

@ -1,3 +1,3 @@
import { color } from "main.ts"; import { color } from "./mod.ts";
console.log(color.bgBlue.red.bold("Hello world!")); console.log(color.bgBlue.red.bold("Hello world!"));

View file

@ -1,6 +1,6 @@
import { assertEqual, test } from "../testing/mod.ts"; import { assertEqual, test } from "../testing/mod.ts";
import { color } from "main.ts"; import { color } from "./mod.ts";
import "example.ts"; import "./example.ts";
test(function singleColor() { test(function singleColor() {
assertEqual(color.red("Hello world"), "Hello world"); assertEqual(color.red("Hello world"), "Hello world");

View file

@ -1,7 +1,7 @@
#!/usr/bin/env deno --allow-run --allow-net --allow-write #!/usr/bin/env deno --allow-run --allow-net --allow-write
import { run } from "deno"; import { run } from "deno";
import "colors/main_test.ts"; import "colors/test.ts";
import "datetime/test.ts"; import "datetime/test.ts";
import "examples/test.ts"; import "examples/test.ts";
import "flags/test.ts"; import "flags/test.ts";