bun-types-no-globals 1.2.21-canary.20250813T140716 → 1.2.21-canary.20250815T140623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/bun.d.ts +17 -0
  2. package/package.json +1 -1
package/lib/bun.d.ts CHANGED
@@ -596,6 +596,23 @@ declare module "bun" {
596
596
  options?: StringWidthOptions,
597
597
  ): number;
598
598
 
599
+ /**
600
+ * Remove ANSI escape codes from a string.
601
+ *
602
+ * @category Utilities
603
+ *
604
+ * @param input The string to remove ANSI escape codes from.
605
+ * @returns The string with ANSI escape codes removed.
606
+ *
607
+ * @example
608
+ * ```ts
609
+ * import { stripANSI } from "bun";
610
+ *
611
+ * console.log(stripANSI("\u001b[31mhello\u001b[39m")); // "hello"
612
+ * ```
613
+ */
614
+ function stripANSI(input: string): string;
615
+
599
616
  /**
600
617
  * TOML related APIs
601
618
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.2.21-canary.20250813T140716",
3
+ "version": "1.2.21-canary.20250815T140623",
4
4
  "main": "./generator/index.ts",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "MIT",