Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 524 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 524 Bytes

saucy

Saucy is a JavaScript library to manipulate the DOM.

It uses expressive language to make your code more readable.

Before Saucy

document.getElementById('id').style.color = "green";
document.getElementById('id').addEventListener("click",foo);

After Saucy

select('#id').set('color').to("green");
select('#id').attach('click').to(foo);

select('#id')
  .set('color').to("green")
  .set('width').to("100px")
  .set('height').to("100px")
  .attach('click').to(foo);