node package manager

fd-select

fd-select

Build Status npm version

Select DOM elements, FD style.

Installation

npm install fd-select --save

Usage

var select = require('fd-select').select;
var selectOne = require('fd-select').selectOne;
 
var foo = select(document)('.foo');
// or 
var foo = select('.foo');
// ^ foo is an array! 
 
var foo = selectOne('.foo');
// ^ foo is the first element!