Comparing version 0.0.2 to 1.0.0
@@ -0,0 +0,0 @@ (function(module) { |
{ | ||
"name": "isuri", | ||
"description": "Pure Javascript implementation for truly checking if the provided input is an URI. Based on RFC 3986.", | ||
"version": "0.0.2", | ||
"version": "1.0.0", | ||
"author": { | ||
@@ -31,3 +31,5 @@ "name" : "David Pate", | ||
"mocha": "^1.x", | ||
"should": "^4.x" | ||
"should": "^4.x", | ||
"benchmark": "^1.x", | ||
"beautify-benchmark": "^0.x" | ||
}, | ||
@@ -34,0 +36,0 @@ "scripts": { |
@@ -5,3 +5,4 @@ isUri | ||
[![Build Status](https://travis-ci.org/DavidTPate/isuri.svg?branch=master)](https://travis-ci.org/DavidTPate/isuri) | ||
[![Coverage Status](https://img.shields.io/coveralls/DavidTPate/isuri.svg?branch=master)](https://coveralls.io/r/DavidTPate/isuri) | ||
[![Code Climate](https://codeclimate.com/github/DavidTPate/isuri/badges/gpa.svg)](https://codeclimate.com/github/DavidTPate/isuri) | ||
[![Test Coverage](https://codeclimate.com/github/DavidTPate/isuri/badges/coverage.svg)](https://codeclimate.com/github/DavidTPate/isuri) | ||
@@ -25,4 +26,37 @@ Pure Javascript implementation for truly checking if the provided input is an URI. Compliant with [RFC 3986](http://tools.ietf.org/html/rfc3986) and documented! | ||
## Benchmarks | ||
``` bash | ||
> Benchmarking complex-ipv4.js | ||
Testing URI "http://asdf:qw%20er@127.0.0.1:8000?asdf=12345&asda=fc%2F#bacon" | ||
isUri#test(uri) x 1,916,525 ops/sec ±0.22% (196 runs sampled) | ||
> Benchmarking complex-ipv6.js | ||
Testing URI "http://asdf:qw%20er@[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:8000?asdf=12345&asda=fc%2F#bacon" | ||
isUri#test(uri) x 1,367,745 ops/sec ±0.18% (196 runs sampled) | ||
> Benchmarking complex-ipvFuture.js | ||
Testing URI "http://asdf:qw%20er@[v1.09azAZ-._~!$&'()*+,;=:]:8000?asdf=12345&asda=fc%2F#bacon" | ||
isUri#test(uri) x 1,485,227 ops/sec ±0.19% (195 runs sampled) | ||
> Benchmarking complex-uri.js | ||
Testing URI "http://asdf:qw%20er@localhost:8000?asdf=12345&asda=fc%2F#bacon" | ||
isUri#test(uri) x 2,100,513 ops/sec ±0.18% (197 runs sampled) | ||
> Benchmarking simple-uri.js | ||
Testing URI "mailto:John.Doe@example.com" | ||
isUri#test(uri) x 2,314,868 ops/sec ±0.19% (195 runs sampled) | ||
``` | ||
## License | ||
[MIT](LICENSE) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
isurl |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
60
0
38978
5
16
355