extension

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

Return the passed file path extension

Params

  1. path*-String

    The file path to get the extension from

Return

  1. -String

    The file extension

Example

import { extension } from '@blackbyte/sugar/fs';
extension('hello/world.jpg'); // => jpg

Todo

  • testsnormal