Skip to content

A stateless, functional library for querying the DOM and doing otherwise jQueryish things with it

License

Notifications You must be signed in to change notification settings

Morklympious/fQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fQuery

I've been working on this functional implementation of jQuery.

Except it's not a functional implementation of jQuery, it's a functional implementation of:

  • DOM traversal
  • Element modification
  • Markup creation

All sort of vaguely in the style of jQuery. There's a genius in the brevity that Resig and the jQuery team have brought to the way that web developers interact with and modify the DOM. The API for fQuery is very similar in its naming conventions, the only difference being the way that these functions are called.

Documentation

Available at https://stffrd.github.io/fQuery

Why?

I wanted to make a jQuery-esque implementation that used all of my favorite parts of jQuery without all of the bloat. I decided to do this in a functional style for a few reasons:

  • Stateless functions are amazing. You can always expect the output as a function of the input.
  • Chaining - It's possible to chain these methods together a la lodash or some other functional equivalent.
  • Dogfooding - I can reuse functions I've already defined in a fairly straightforward and understandable way!

It's even ie8 compatible, too!

On the radar

  • Events

About

A stateless, functional library for querying the DOM and doing otherwise jQueryish things with it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published