diff options
Diffstat (limited to 'src/bun.zig')
-rw-r--r-- | src/bun.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.zig b/src/bun.zig index 9fe21a05a..1999e43d5 100644 --- a/src/bun.zig +++ b/src/bun.zig @@ -30,6 +30,12 @@ pub const path = @import("./resolver/resolve_path.zig"); pub const fmt = struct { pub usingnamespace std.fmt; + pub fn quote(self: string) strings.QuotedFormatter { + return strings.QuotedFormatter{ + .text = self, + }; + } + pub fn formatIp(address: std.net.Address, into: []u8) ![]u8 { // std.net.Address.format includes `:<port>` and square brackets (IPv6) // while Node does neither. This uses format then strips these to bring |