text-param-case
Version:
Convert into a lower cased text with dashes between words
14 lines (13 loc) • 385 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.paramCase = paramCase;
const text_dot_case_1 = require("text-dot-case");
function paramCase(input, options = {}) {
// Handle null/undefined inputs gracefully
if (!input)
return "";
return (0, text_dot_case_1.dotCase)(input, {
delimiter: "-",
...options,
});
}
;