Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

qs2el

webreflection4ISC0.1.0

Create elements from query selector strings.

query, selector, element, transform

readme

qs2el

Build Status Coverage Status WebReflection status

Create an element from a query selector string.

// as function
const a = qs2el('a#home.special[data-page=home]');

// or as literal
const button = qs2el`button${'.primary'}[disabled]`;