This is a vanilla TypeScript helper tool. You can do it with this library.
SuperSet Language - TypeScript
Package Manager - Yarn
~$ yarn add @oshx/dom-tools
# Enjoy with it!
import { onceInlineFrame, onceScript } from '@oshx/dom-tools';
onceInlineFrame('app://scheme');
onceInlineFrame('https://deeplink.page');
onceScript('https://code.jquery.com/jquery-1.12.4.min.js');
import { REGEXP_VALID_URI } from '@oshx/dom-tools';
REGEXP_VALID_URI.test('https://hostname:port/path/?searchParams');
// REGEXP_VALID_PATH
// REGEXP_SPACE
import { InnerDOM } from '@oshx/dom-tools/@types';
Install it with me!
created at 2023-03-10