UNPKG

faim

Version:

Element Plus & Element UI isomorphic UI component library, more than Element.

11 lines (8 loc) 284 B
import { name, PascalCasedName } from './package.json' const prefix = PascalCasedName.substring(0, 2) export default (componentName) => { // where `componentName` is always CapitalCase if (componentName.startsWith(prefix)) { return { name: componentName, from: name } } }