The URL constructor / class without tears
npm install @ianwalter/url[![npm page][npmImage]][npmUrl]
[![CI][ciImage]][ciUrl]
``console`
yarn add @ianwalter/url
`js
const createUrl = require('@ianwalter/url')
const url = createUrl('https://ianwalter.dev')
url.hostname //=> ianwalter.dev
url.pathname = '/projects'
url.href //=> https://ianwalter.dev/projects
``
Hippocratic License - See [LICENSE][licenseUrl]
Created by Ian Walter
[npmImage]: https://img.shields.io/npm/v/@ianwalter/url.svg
[npmUrl]: https://www.npmjs.com/package/@ianwalter/url
[ciImage]: https://github.com/ianwalter/url/workflows/CI/badge.svg
[ciUrl]: https://github.com/ianwalter/url/actions
[licenseUrl]: https://github.com/ianwalter/url/blob/master/LICENSE