# urlish

> A string parser that determines if something is url-like

Latest version **1.0.1** (published 2016-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install urlish
pnpm add urlish
yarn add urlish
bun add urlish
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-08-06 |
| First published | 2013-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Damon Oehlman |
| Maintainers | damonoehlman |
| Keywords | parser, url |

## Links

- npm: https://www.npmjs.com/package/urlish
- Repository: https://github.com/DamonOehlman/urlish
- Homepage: https://github.com/DamonOehlman/urlish#readme
- Issues: https://github.com/DamonOehlman/urlish/issues
- npm.io page: https://npm.io/package/urlish

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-08-06
- 1.0.0 — 2016-08-06
- 0.1.0 — 2013-10-20
- 0.0.1 — 2013-10-20

## README

# urlish

This is a simple module that parses an input string to determine if it
matches with a typical url syntax.  This is not a strict URL parser, and if
that behaviour is desired I would recommend looking at the core node
[url](http://nodejs.org/api/url.html) module.

This module was written to satisfy the use case of
[getit](https://github.com/DamonOehlman/getit) where url-like syntaxes
are used.


[![NPM](https://nodei.co/npm/urlish.png)](https://nodei.co/npm/urlish/)

[![Build Status](https://api.travis-ci.org/DamonOehlman/urlish.svg?branch=master)](https://travis-ci.org/DamonOehlman/urlish) [![bitHound Score](https://www.bithound.io/bitbucket/DamonOehlman/urlish/badges/score.svg)](https://www.bithound.io/bitbucket/DamonOehlman/urlish) 

## So what is URLish?

In very simple terms we are looking for something that matches the
following format:

```
[scheme]://[hostname](:[port])?(/[path])?
```

At this stage, things like usernames and passwords are not looked at
and no querystring or hash parsing is attempted either.

## License(s)

### MIT

Copyright (c) 2016 Damon Oehlman <damon.oehlman@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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