mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
6 lines
234 B
JavaScript
6 lines
234 B
JavaScript
import { splitByCase, upperFirst } from 'scule'
|
|
|
|
export default (title, link) => {
|
|
return title || link.split('/').filter(Boolean).map(part => splitByCase(part).map(p => upperFirst(p)).join(' ')).join(' > ').replace('Api', 'API')
|
|
}
|