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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

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