MCPcopy Create free account
hub / github.com/apify/impit / normalizeLinefeeds

Method normalizeLinefeeds

impit-node/index.wrapper.js:130–130  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

128 /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
129 const escape = (str) => str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22');
130 const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, '\r\n');
131
132 const blobParts = [];
133 const rn = new Uint8Array([13, 10]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected