segmentio/is-url

Loosely validate a URL.

JavaScript

167

44 commits

updated Apr 24, 2026

See the code

README

is-url

Note
Segment has paused maintenance on this project, but may return it to an active status in the future. Issues and pull requests from external contributors are not being considered, although internal contributions may appear from time to time. The project remains available under its open source license for anyone to use.

Check whether a string is a URL.

Installation

npm install is-url

API

isUrl(string)

Returns a Boolean indicating whether string is a URL.

License

MIT

paused

Significant stargazers

Simon Hänisch

100 followers · starred Feb 2019

segmentio/is-url

Loosely validate a URL.

JavaScript

167

44 commits

updated Apr 24, 2026

See the code

README

is-url

Note
Segment has paused maintenance on this project, but may return it to an active status in the future. Issues and pull requests from external contributors are not being considered, although internal contributions may appear from time to time. The project remains available under its open source license for anyone to use.

Check whether a string is a URL.

Installation

npm install is-url

API

isUrl(string)

Returns a Boolean indicating whether string is a URL.

License

MIT

paused

Significant stargazers

Simon Hänisch

100 followers · starred Feb 2019