sub-of
v1.0.0
Published
Sub-Of: 8 lines of code for 10000s of lines of security
Downloads
1
Maintainers
Readme
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