UNPKG

@boost/core

Version:

Robust pipeline for creating dev tools that separate logic into routines and tasks.

14 lines (13 loc) 474 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Combine app and plugin names into a Node/NPM applicable module name. */ function formatModuleName(appName, pluginType, name, scoped = false) { const moduleName = name.toLowerCase().replace(`${pluginType}:`, ''); if (scoped) { return `@${appName}/${pluginType}-${moduleName}`; } return `${appName}-${pluginType}-${moduleName}`; } exports.default = formatModuleName;