dirname

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

Return the dirname the same as the dirname cjs variable. The only difference is that it’s a function and you need to pass the “import” variable from the filename in which you use this…

Return

  1. -String

    The dirname path

Example

import { dirname } from '@blackbyte/sugar/fs';
dirname();