isPath

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

Check if the passed string is a valid path or not

Params

  1. path*-String

    The path to check

  2. checkExistencefalseBoolean

    Specify if you want to check that the passed path actually exist

Return

  1. -Boolean

    true if the path is valide, false if not

Example

import { isPath } from '@blackbyte/sugar/fs';
isPath('hello/world'); // => true

Todo

  • testsnormal