MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / stripLineEndings

Function stripLineEndings

lib/utils.mjs:219–223  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

217 * @return {string}
218 */
219export function stripLineEndings (obj) {
220 if (!obj) { return obj }
221
222 return obj.replace(/(\r\n|\n|\r)/gm, '')
223}
224
225/**
226 * Routes the resolved file. Serves static files with content negotiation.

Callers 1

utils-test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected