is-local-path
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "is-local-path", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Test whether a path is local.", | ||
@@ -5,0 +5,0 @@ "repository": "panosoft/is-local-path", |
@@ -17,9 +17,12 @@ # is-local-path | ||
var isLocalPath = require('is-local-path'); | ||
```js | ||
var isLocalPath = require('is-local-path'); | ||
isLocalPath('/path/to/file.ext')); // true | ||
isLocalPath('/path/to/directory')); // true | ||
isLocalPath('./relative/path')); // true | ||
isLocalPath('../relative/path')); // true | ||
isLocalPath('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D')); // false | ||
isLocalPath('http://host.com/path/to/file.ext')); // false | ||
isLocalPath('/path/to/file.ext')); // true | ||
isLocalPath('/path/to/directory')); // true | ||
isLocalPath('./relative/path')); // true | ||
isLocalPath('../relative/path')); // true | ||
isLocalPath('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D')); // false | ||
isLocalPath('http://host.com/path/to/file.ext')); // false | ||
``` |
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
28
22544