UNPKG

@servable/tools

Version:

Servable tools is a utility that builds a protocol's manifest and documents it.

15 lines (13 loc) 278 B
import fg from 'fast-glob' export default async ({ path, globOptions = { mark: true }, }) => { try { const entries = await fg([path], globOptions,) return Promise.all(entries.map(entry => import(entry))) } catch (e) { console.error(e) return null } }