is-root-path
v3.0.0
Published
Check if a path is the root path. Example: `/` or `C:\`
Downloads
27
Maintainers
Readme
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