is-local-path
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "is-local-path", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Test whether a path is local.", | ||
@@ -5,0 +5,0 @@ "repository": "panosoft/is-local-path", |
@@ -5,11 +5,13 @@ # is-local-path | ||
[![npm](https://img.shields.io/npm/v/is-local-path.svg)]() | ||
[![npm](https://img.shields.io/npm/l/is-local-path.svg)]() | ||
[![Travis](https://img.shields.io/travis/panosoft/is-local-path.svg)]() | ||
[![David](https://img.shields.io/david/panosoft/is-local-path.svg)]() | ||
[![npm](https://img.shields.io/npm/dm/is-local-path.svg)]() | ||
[![npm version](https://img.shields.io/npm/v/is-local-path.svg)](https://www.npmjs.com/package/is-local-path) | ||
[![npm license](https://img.shields.io/npm/l/is-local-path.svg)](https://www.npmjs.com/package/is-local-path) | ||
[![Travis](https://img.shields.io/travis/panosoft/is-local-path.svg)](https://travis-ci.org/panosoft/is-local-path) | ||
[![David](https://img.shields.io/david/panosoft/is-local-path.svg)](https://david-dm.org/panosoft/is-local-path) | ||
[![npm downloads](https://img.shields.io/npm/dm/is-local-path.svg)](https://www.npmjs.com/package/is-local-path) | ||
## Installation | ||
npm install is-local-path | ||
```sh | ||
npm install is-local-path | ||
``` | ||
@@ -26,4 +28,19 @@ ## Usage | ||
isLocalPath('http://host.com/path/to/file.ext')); // false | ||
isLocalPath('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D')); // false | ||
isLocalPath('http://host.com/path/to/file.ext')); // false | ||
``` | ||
## API | ||
- [`isLocalPath`](#isLocalPath) | ||
--- | ||
<a name-"isLocalPath"/> | ||
### isLocalPath ( string ) | ||
Tests whether a `string` is a local path. | ||
__Arguments__ | ||
- `string` - A string to test. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45
2424
6