is-root-path
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

is-root-path

Check if a path is the root path. Example: / or C:\

Install

$ npm install is-root-path

Usage

import isRootPath from 'is-root-path';

isRootPath('/');
//=> true

isRootPath('/Users');
//=> false

Package Sidebar

Install

npm i is-root-path

Weekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

2.89 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus