Tealight
Enhanced query selector API.
Installation
Browser
A simple and fast way to get started is to include this script on your page:
<script src="https://unpkg.com/tealight"></script>
This will create the global variable tealight
.
If you use this method in production, be sure to specify a fixed version number, and use the minified distribution; e.g: https://unpkg.com/tealight@1.0.0/dist/tealight.min.js
. This improves performance, but also prevents library changes from impacting your project.
Module
npm install tealight
CommonJS
const tealight = require('tealight')
ES2015
import tealight from 'tealight'