1.0.0 • Published 1 month ago
sub-of v1.0.0
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
1.0.0
1 month ago