UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

18 lines (15 loc) 424 B
import { createRequire } from 'module'; async function getModulePackageJson(packageName) { try { const require = createRequire(import.meta.url); return require(`${packageName}/package.json`); } catch { try { return (await import(`${packageName}/package.json`)).default; } catch { return null; } } } export { getModulePackageJson }; //# sourceMappingURL=get-module-package-json.js.map