UNPKG

@inkline/paper

Version:

Paper is a unified interface for defining components for Vue and React using a single code base.

14 lines (10 loc) 360 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeEventName = void 0; var _capitalizeFirst = require("./capitalizeFirst"); const normalizeEventName = name => { return `on${name.split(":").map(part => (0, _capitalizeFirst.capitalizeFirst)(part)).join("")}`; }; exports.normalizeEventName = normalizeEventName;