UNPKG

@jverneaut/html-to-gutenberg

Version:

Create custom Gutenberg blocks from the HTML templates you already have.

4 lines (3 loc) 155 B
// Converts a kebab-case string to camelCase // e.g., "hello-world" -> "helloWorld" export default (str) => str.replace(/-./g, (x) => x[1].toUpperCase());