Extracts file information from a URL or file path.
Object containing file information
getFileInfo('https://example.com/path/Document%20Name.PDF')returns { name: 'Document Name.PDF', type: 'pdf', base: 'Document Name'}getFileInfo('invalid/url')returns { name: 'Unknown File', type: '', base: 'Unknown File'}
The URL or file path to process
Generated using TypeDoc
Extracts file information from a URL or file path.
Returns
Object containing file information
Example