is-local-path
0.1.6 • Public • Published is-local-path
Test whether a path is local.
Installation
npm install is-local-path
Usage
var isLocalPath = require('is-local-path');
isLocalPath('/path/to/file.ext'));
isLocalPath('/path/to/directory'));
isLocalPath('./relative/path'));
isLocalPath('../relative/path'));
isLocalPath('http://host.com/path/to/file.ext'));
isLocalPath('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D'));
API
isLocalPath ( string )
Tests whether a string
is a local path.
Arguments
string
- A string to test.
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads