Filename to string
: shell
: file-content-store
: filename-to-string
: /modules/core/content/services/filename-to-string.js
fileNameToString
A service that translates file names into human-readable strings.
fileNameToString.transform(fileName) ⇒ string
Transform a file name into a human-readable string.
Kind: static method of fileNameToString
Returns: string - The human-readable string.
| Param | Type | Description |
|---|---|---|
| fileName | string |
The file name. |
Example
'filename-to-string.js' becomes 'Filename to string'.