Installing
yarn add url-steroids
Usage
const URL = ; // URL.parseURL ; /* Output: Url { protocol: 'http:', slashes: true, auth: null, host: 'google.com', port: null, hostname: 'google.com', hash: null, search: null, query: null, pathname: '/', path: '/', href: 'http://google.com/', title: 'Google' } */ // URL.match URL ; /* Output It's not matching. */ URL ; /* Output It's matching. */
Tests
npm test
Feel free for contribute