UNPKG

@flex-development/pathe

Version:

Universal drop-in replacement for node:path

24 lines (23 loc) 485 B
/** * @file extnames * @module pathe/lib/extnames */ import type { Ext } from '@flex-development/pathe'; /** * Get a list of file extensions for `input`. * * @see {@linkcode Ext} * @see {@linkcode extname} * * @category * utils * * @this {void} * * @param {URL | string} input * The {@linkcode URL}, URL string, or path to handle * @return {Ext[]} * List of extensions */ declare function extnames(this: void, input: URL | string): Ext[]; export default extnames;