🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

is-root-path

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-root-path

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

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

root

FAQs

Package last updated on 10 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts