sub-of

1.0.0 • Public • Published

sub-of

Installation

npm i sub-of

Usage

import { subOf } from "sub-of"
subOf("https://evil.com", "https://safe.site") // False
subOf("https://www.safe.site", "https://safe.site") // True
subOf("https://www.unsafe.site") // [window.location = "https://safe.site"] False

License

Licensed under an MIT license by RedYetiDev

Package Sidebar

Install

npm i sub-of

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • redyetidev