@cjser/is-url-superb
v6.1.0-cjser.2
Published
Check if a string is a URL
Maintainers
Readme
is-url-superb
Check if a string is a URL
Install
$ npm install is-url-superbUsage
import isUrl from 'is-url-superb';
isUrl('https://sindresorhus.com');
//=> true
isUrl('unicorn');
//=> falseAPI
isUrl(string, options?)
options
Type: object
lenient
Type: boolean
Default: false
Allow URLs without a protocol.
import isUrl from 'is-url-superb';
isUrl('example.com');
//=> false
isUrl('example.com', {lenient: true});
//=> trueRelated
- is - Type check values
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-url-superb
