3.0.0 • Published 3 years ago
is-root-path v3.0.0
is-root-path
Check if a path is the root path. Example:
/
orC:\
Install
$ npm install is-root-path
Usage
import isRootPath from 'is-root-path';
isRootPath('/');
//=> true
isRootPath('/Users');
//=> false