mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
6a4eb6cb91
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
// This module is browser compatible.
|
|
/**
|
|
* Internal utilities for the public API of the Deno Standard Library.
|
|
*
|
|
* Note: this module is for internal use only and should not be used directly.
|
|
*
|
|
* ```ts
|
|
* import { diff, diffStr, buildMessage } from "@std/internal";
|
|
* import { assertEquals } from "@std/assert";
|
|
*
|
|
* const a = [1, 2, 3];
|
|
* const b = [1, 2, 4];
|
|
*
|
|
* assertEquals(diff(a, b), [
|
|
* { type: "common", value: 1 },
|
|
* { type: "common", value: 2 },
|
|
* { type: "removed", value: 3 },
|
|
* { type: "added", value: 4 },
|
|
* ]);
|
|
*
|
|
* const diffResult = diffStr("Hello, world!", "Hello, world");
|
|
*
|
|
* console.log(buildMessage(diffResult));
|
|
* // [
|
|
* // "",
|
|
* // "",
|
|
* // " [Diff] Actual / Expected",
|
|
* // "",
|
|
* // "",
|
|
* // "- Hello, world!",
|
|
* // "+ Hello, world",
|
|
* // "",
|
|
* // ]
|
|
* ```
|
|
*
|
|
* @module
|
|
*/
|
|
export * from "./assertion_state.ts";
|
|
export * from "./build_message.ts";
|
|
export * from "./diff.ts";
|
|
export * from "./diff_str.ts";
|
|
export * from "./format.ts";
|
|
export * from "./styles.ts";
|
|
export * from "./types.ts";
|