# is-local-path

> Test whether a path is local.

Latest version **0.1.6** (published 2015-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-local-path
pnpm add is-local-path
yarn add is-local-path
bun add is-local-path
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2015-12-17 |
| First published | 2015-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | panosoft |

## Links

- npm: https://www.npmjs.com/package/is-local-path
- Repository: https://github.com/panosoft/is-local-path
- Homepage: https://github.com/panosoft/is-local-path#readme
- Issues: https://github.com/panosoft/is-local-path/issues
- npm.io page: https://npm.io/package/is-local-path

## Recent versions

- 0.1.6 (latest) — 2015-12-17
- 0.1.5 — 2015-08-26
- 0.1.4 — 2015-08-17
- 0.1.3 — 2015-08-10
- 0.1.2 — 2015-08-05
- 0.1.1 — 2015-08-05
- 0.1.0 — 2015-07-29
- 0.0.1 — 2015-07-22

## README

# is-local-path

Test whether a path is local.

[![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

```sh
npm install is-local-path
```

## Usage

```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('http://host.com/path/to/file.ext')); // false
isLocalPath('data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D')); // false
```

## API

- [`isLocalPath`](#isLocalPath)

---

<a name="isLocalPath"></a>
### isLocalPath ( string )

Tests whether a `string` is a local path.

__Arguments__

- `string` - A string to test.

---
_Source: https://npm.io/package/is-local-path · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
