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

Function parseString

src/index.js:291–297  ·  view source on GitHub ↗
(str, options, callback = noop)

Source from the content-addressed store, hash-verified

289// @param {options} options The options object
290// @param {function} callback The callback function
291const parseString = (str, options, callback = noop) => {
292 if (typeof options === 'function') {
293 callback = options;
294 options = {};
295 }
296 return parseStream(streamify(str), options, callback);
297};
298
299const parseStringSync = (str, options) => {
300 const results = [];

Callers 1

index.test.jsFile · 0.85

Calls 2

parseStreamFunction · 0.85
streamifyFunction · 0.85

Tested by

no test coverage detected