Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
test Got rid of theage.com.au as a test because its not valid HTML and our…
.gitignore
.travis.yml Added Travis CI file
element-finder.js Third parameter no longer required
package.json Third parameter no longer required
readme.md

readme.md

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.

Sublime Text Package

There is also a Sublime Text package. More info at https://github.com/keeganstreet/sublime-elfinder

Something went wrong with that request. Please try again.