Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenvachon/hasurl
Determine whether Node.js' WHATWG URL implementation is available.
https://github.com/stevenvachon/hasurl
nodejs url whatwg
Last synced: 3 months ago
JSON representation
Determine whether Node.js' WHATWG URL implementation is available.
- Host: GitHub
- URL: https://github.com/stevenvachon/hasurl
- Owner: stevenvachon
- License: mit
- Created: 2017-03-08T14:59:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T16:36:21.000Z (over 5 years ago)
- Last Synced: 2024-10-06T04:23:40.344Z (3 months ago)
- Topics: nodejs, url, whatwg
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hasurl [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Determine whether Node.js' native [WHATWG `URL`](https://nodejs.org/api/url.html#url_the_whatwg_url_api) implementation is available.
## Installation
[Node.js](http://nodejs.org/) `>= 4` is required. To install, type this at the command line:
```shell
npm install hasurl
```## Usage
```js
const hasURL = require('hasurl');if (hasURL()) {
// supported
} else {
// fallback
}
```[npm-image]: https://img.shields.io/npm/v/hasurl.svg
[npm-url]: https://npmjs.com/package/hasurl
[travis-image]: https://img.shields.io/travis/stevenvachon/hasurl.svg
[travis-url]: https://travis-ci.org/stevenvachon/hasurl