is-url-http
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -0,1 +1,7 @@ | ||
## 2.1.0 (2020-02-05) | ||
* feat: add lightweight version ([d49eea7](https://github.com/Kikobeats/is-url-http/commit/d49eea7)) | ||
## <small>2.0.1 (2020-02-05)</small> | ||
@@ -2,0 +8,0 @@ |
@@ -5,3 +5,4 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/is-url-http", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"browser": "lightweight.js", | ||
"main": "index.js", | ||
@@ -55,3 +56,4 @@ "author": { | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"lightweight.js" | ||
], | ||
@@ -82,3 +84,5 @@ "scripts": { | ||
] | ||
} | ||
}, | ||
"umd:main": "lightweight.js", | ||
"unpkg": "lightweight.js" | ||
} |
# is-url-http | ||
![Last version](https://img.shields.io/github/tag/Kikobeats/is-url-http.svg?style=flat-square) | ||
@@ -31,2 +30,13 @@ [![Build Status](https://img.shields.io/travis/Kikobeats/is-url-http/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/is-url-http) | ||
If you need to run the package in a browser environment, you can save some bytes using the lightweight version: | ||
```js | ||
const isUrlHttp = require('is-url-http/lightweight') | ||
isUrlHttp('https://kikobeats.com') // ==> true | ||
isUrlHttp('https://kikobeats.com') // ==> true | ||
isUrlHttp('mailto://kiko@beats.com') // ==> false | ||
isUrlHttp('callto:192.168.103.77+type=ip') // ==> false | ||
``` | ||
## License | ||
@@ -33,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8027
6
22
47