UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

17 lines 508 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (component, quote = '"') => { if (component === undefined) { return ''; } else if (typeof component === 'string' && /\s/.test(component) && component.charAt(0) !== quote && component.charAt(component.length - 1) !== quote) { return `${quote}${component}${quote}`; } else { return component.toString(); } }; //# sourceMappingURL=encode.js.map