MCPcopy Index your code
hub / github.com/NativeScript/nativescript-sdk-examples-js / prettify

Function prettify

scripts/build.js:15–19  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

13
14// `i-am-article` becomes `I Am Article`
15function prettify(str) {
16 return str.split('-').map(function capitalize(part) {
17 return part.charAt(0).toUpperCase() + part.slice(1);
18 }).join(' ');
19}
20
21// Folder name 'ui-examples' becomes 'ui' (the way it should be displayed in the documentation tree)
22function updateSubfoldersName(str) {

Callers 2

compareFilesFunction · 0.85
getComponentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected