Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
22
const
noop = () => {};
23
24
const
streamify = (text) => {
25
const
s =
new
stream.Readable();
26
s.push(text);
27
s.push(null);
28
return
s;
29
};
30
31
const
containsLineEnd = (() => {
32
const
re =
new
RegExp(/.*(?:\r\n|\r|\n)/g);
Callers
1
parseString
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected