Skip to content

Instantly share code, notes, and snippets.

View mattvagni's full-sized avatar
👀
Hiring

Mathias Vagni mattvagni

👀
Hiring
View GitHub Profile
@nblackburn
nblackburn / camelToKebab.js
Last active December 15, 2023 03:19
Convert a string from camel case to kebab case.
module.exports = (string) => {
return string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();
};