MCPcopy Index your code
hub / github.com/cncjs/gcode-parser / streamify

Function streamify

src/index.js:24–29  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

22const noop = () => {};
23
24const streamify = (text) => {
25 const s = new stream.Readable();
26 s.push(text);
27 s.push(null);
28 return s;
29};
30
31const containsLineEnd = (() => {
32 const re = new RegExp(/.*(?:\r\n|\r|\n)/g);

Callers 1

parseStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected