MCPcopy Create free account
hub / github.com/bathos/Ecmascript-Sublime / yaml_load

Function yaml_load

nested/src/modify-ecmascript.js:118–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 const distinct_id = n_id => Buffer.from(n_id+'').toString('base64').replace(/=+$/, '');
117
118 const yaml_load = z_yaml => 'string' === typeof z_yaml
119 ? yaml.safeLoad(`%YAML 1.2\n---\n${gobble(z_yaml)}\n`)
120 : z_yaml;
121
122 const regexp = r_source => r_source.toString().replace(/^\/(.+)\/[^/]*/, '$1');
123

Callers 2

insert_rulesFunction · 0.85

Calls 1

gobbleFunction · 0.70

Tested by

no test coverage detected