MCPcopy
hub / github.com/toddbluhm/env-cmd / stripEmptyLines

Function stripEmptyLines

src/parse-env-file.ts:108–111  ·  view source on GitHub ↗
(envString: string)

Source from the content-addressed store, hash-verified

106 * Strips out newlines from env file string
107 */
108export function stripEmptyLines(envString: string): string {
109 const emptyLinesRegex = /(^\n)/gim
110 return envString.replace(emptyLinesRegex, '')
111}
112
113/**
114 * If we load data from a file like .js, the user

Callers 2

parseEnvStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected