Edit this topic

Filename to string

: shell

: filename-to-string

: file-content-store

: /modules/core/content/services/filename-to-string.js

: https://github.com/DecentCMS/DecentCMS/blob/master/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.

Returns: string - The human-readable string.

Param Type Description
fileName string The file name.

Example
'filename-to-string.js' becomes 'Filename to string'.