Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.13 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.13 KB

@vjscc/utils

Vanilla JavaScript utils collection.

npm npm type definitions npm bundle size Codecov GitHub

Install

npm install @vjscc/utils -S

Usage

import utility funcions and call them as you wish.

// ESM
import { isHTMLElement } from '@vjscc/utils'
const random1 = isHTMLElement(document.body)

// CommonJS
const { isHTMLElement } = require('@vjscc/utils')
const random2 = isHTMLElement(document.body)

// From window
const { isHTMLElement } = window.VjsccUtils
const random3 = isHTMLElement(document.body)

LICENSE

MIT