MCPcopy
hub / github.com/motdotla/dotenv / dim

Function dim

lib/main.js:34–36  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

32}
33
34function dim (text) {
35 return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text
36}
37
38const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg
39

Callers 1

configDotenvFunction · 0.85

Calls 1

supportsAnsiFunction · 0.85

Tested by

no test coverage detected