shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- path*-String
The path to check
- checkExistencefalseBoolean
Specify if you want to check that the passed path actually exist
Return
- -Boolean
true if the path is valide, false if not
Example
import { isPath } from '@blackbyte/sugar/fs';
isPath('hello/world'); // => trueTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space