Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-local-path

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-local-path - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc