Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
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:\`

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
12
71.43%
Maintainers
1
Weekly downloads
 
Created
Source

is-root-path Build Status

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

Install

$ npm install is-root-path

Usage

const isRootPath = require('is-root-path');

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

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

License

MIT © Sindre Sorhus

Keywords

root

FAQs

Package last updated on 20 Apr 2019

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