has-scheme
v1.0.0
Published
Test if a URL has a scheme
Downloads
2,077
Readme
node-has-scheme
Install
npm install has-scheme
Usage
var hasScheme = require('has-scheme')
hasScheme('example.com'); // `false`
hasScheme('http://example.com'); // `true`
Version support
Pretty much any Node under the sun, but the tests only run on 4+.
Author
AJ Jordan [email protected]
License
MIT