Function extname

  • Parameters

    • filepath: string

      Path

    Returns string

    Description

    Get file extname

    Example

    import { path } from '@biorate/tools';
    console.log(path.extname('/www/root/index.js')); // .js
    console.log(path.extname('/www/root/index.html')); // .html

Generated using TypeDoc