href-type
Test whether an href string is absolute, relative, protocol-relative, #fragment, mailto:, tel:, sms:, etc
Installation
npm install href-type --save
Usage
const hrefType = // mailto // tel // sms // absolute // absolute // protocol // rooted // relative
Tests
npm installnpm test
Dependencies
None
Dev Dependencies
- chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
- mocha: simple, flexible, fun test framework
License
MIT
Generated by package-json-to-readme