MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / pluginFilter

Function pluginFilter

lib/plugins.js:10–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const __dirname = Helper.__dirname(import.meta)
9const pluginFolder = Helper.__dirname(join(__dirname, '../plugins/index'))
10const pluginFilter = filename => /\.(mc)?js$/.test(filename)
11
12// inspired from https://github.com/Nurutomo/mahbod/blob/main/src/util/PluginManager.ts
13

Callers 1

reloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected