MCPcopy Create free account
hub / github.com/Create-Node-App/create-node-app / matchExts

Function matchExts

src/loaders.js:46–46  ·  view source on GitHub ↗
(...exts)

Source from the content-addressed store, hash-verified

44
45function getModeFromPath(path = '') {
46 const matchExts = (...exts) => exts.find((ext) => path.endsWith(ext));
47
48 if (matchExts('.append')) {
49 return 'append';

Callers 1

getModeFromPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected