0.0.1 • Published 1 year ago

@oshx/dom-tools v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@oshx/dom-tools

This is a vanilla TypeScript helper tool. You can do it with this library.

Prerequisites

SuperSet Language - TypeScript
Package Manager - Yarn

Installation

~$ yarn add @oshx/dom-tools
# Enjoy with it!

APIs

Once-series

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');

Core

import { REGEXP_VALID_URI } from '@oshx/dom-tools';

REGEXP_VALID_URI.test('https://hostname:port/path/?searchParams');
// REGEXP_VALID_PATH
// REGEXP_SPACE

Types

import { InnerDOM } from '@oshx/dom-tools/@types';

For fun!

Install it with me!

created at 2023-03-10
0.0.1

1 year ago