Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 952 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 952 Bytes

@viscum/sel2el

TypeScript Build Status Coverage Status Npm Package Info Downloads

综述 | Abstract

DOM element selector.

安装 | Install

npm install @viscum/sel2el --save

使用 | Usage

import sel2el from '@viscum/sel2el'

// return document.querySelector(input)
const el = sel2el('#foobar')

// return input element
const el2 = sel2el(el)