Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer 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
1.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 --save is-root-path

Usage

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

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

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

License

MIT © Sindre Sorhus

Keywords

root

FAQs

Package last updated on 09 May 2015

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