@cjser/is-root-path
v3.0.0-cjser.2
Published
Check if a path is the root path. Example: `/` or `C:\`
Downloads
19
Maintainers
Readme
is-root-path
Check if a path is the root path. Example:
/orC:\
Install
$ npm install is-root-pathUsage
import isRootPath from 'is-root-path';
isRootPath('/');
//=> true
isRootPath('/Users');
//=> falsecjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-root-path
