Skip to content

cosmoslabs/selement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selement

Select DOM elements using simple CSS selectors

Installation

$ yarn add selement
$ npm install selement --save

Usage

import S from selement;

const element = S('div.some-class > p')[0];

console.log(element.tagName);