• This repository has been archived on 15/Dec/2023
  • Stars
    star
    118
  • Rank 299,923 (Top 6 %)
  • Language
    JavaScript
  • Created over 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Find in Files with CSS selectors

Element Finder

Build Status

Find in Files with CSS selectors.

Element Finder is a command line app for recursively searching through a directory and finding HTML files which contain elements matching a given CSS selector.

Example usage

Search for elements with a class of awesome-list:

elfinder -s .awesome-list

Search for elements with a class of awesome-list which are descendants of an element with a class of colours:

elfinder -s ".colours .awesome-list"

Search for elements with a class of awesome-list in files with an extension of html or shtml:

elfinder -s .awesome-list -x "html, shtml"

Search for elements matching the ul.boxes .box selector, but ignore any files in the .git, .svn or partials folders:

elfinder -s "ul.boxes .box" -i ".git, .svn, partials"

Installation with npm (recommended)

  1. Install Node JS: http://nodejs.org/#download

  2. Install elfinder globally with npm (npm comes with Node JS):

     npm install -g elfinder
    

Element Finder is a command line tool so it is best to install it globally with npm.

Atom package

There is a package for Atom which is easier to use than the command line app. More info at https://github.com/keeganstreet/atom-element-finder

More Repositories

1

specificity

A JavaScript module for calculating the specificity of CSS selectors
TypeScript
609
star
2

sublime-elfinder

Sublime Text plugin for finding elements that match a CSS selector in HTML files
Python
48
star
3

HTML5-Validator-with-Filters

Validate your HTML5 documents and filter the error messages (since upstreamed to the W3C's HTML validator)
JavaScript
19
star
4

These-Days-jQuery-Slideshow-Plugin

Yet another jQuery plugin for slideshows. Super lightweight. Uses CSS3 Transitions when available. Offers a gotoSlide(index) method and a beforeTransition(index) callback.
JavaScript
11
star
5

domtosource

This JavaScript module wraps around Cheerio and magically calculates the line and column numbers where DOM elements appear in the HTML source code.
HTML
10
star
6

compatibility-reporter

Generate a report on the Web Platform features that your website uses, and the browser support of each feature, using data from Can I Use.
JavaScript
7
star
7

logger

Web service for logging front-end JavaScript errors built with NodeJS and MongoDB
JavaScript
7
star
8

atom-element-finder

Atom package to find in HTML files with CSS selectors
JavaScript
6
star
9

chrome-eslint

Chrome extension to run ESLint on the current webpage
JavaScript
5
star
10

specificity.keegan.st

A web-app specificity calculator
SCSS
5
star
11

sublime-specificity

A Sublime Text 2 package for calculating CSS specificity
Python
4
star
12

atom-compatibility-reporter

Atom package to generate a report on the Web Platform features that your website uses, and the browser support of each feature.
JavaScript
2
star
13

dudewheresmyvelo.be

Just another Node & Express web app
JavaScript
2
star
14

destructuring-presentation

A presentation on ES6 destructuring
HTML
1
star