mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-15 12:43:38 +09:00
Remove camelcase dep, roll my own
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import path from 'path';
|
||||
|
||||
export function camelCase(str) {
|
||||
return str.replace(/-(.)/g, (match) => match[1].toUpperCase());
|
||||
}
|
||||
|
||||
export function buildPostPath(outputDir, type, date, slug, config) {
|
||||
// start with base output dir and post type
|
||||
const pathSegments = [outputDir, type];
|
||||
|
||||
Reference in New Issue
Block a user