MCPcopy
hub / github.com/ineo6/hosts / saveHosts

Function saveHosts

src/hosts.ts:185–192  ·  view source on GitHub ↗
(hostData: HostData[], config: UpdateConfig)

Source from the content-addressed store, hash-verified

183}
184
185async function saveHosts(hostData: HostData[], config: UpdateConfig) {
186 try {
187 updateMd(tpl.replace('{content}', buildHosts(hostData))
188 .trim(), config);
189 } catch (err) {
190 console.error(err.message);
191 }
192}
193
194const speedConfig = {
195 interval: 0,

Callers 2

updateHostsFunction · 0.85
updateNextHostsFunction · 0.85

Calls 2

buildHostsFunction · 0.90
updateMdFunction · 0.85

Tested by

no test coverage detected