package
Sub-Of: 8 lines of code for 10000s of lines of security
npm install sub-ofGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
2.0 kB
Includes dependencies.
npm i sub-ofimport { 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"] FalseLicensed under an MIT license by RedYetiDev