Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including desandro-classie with all npm packages installed. Try it out:

var desandroClassie = require("desandro-classie")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

desandro-classie v1.0.1

class helper functions

Classie - class helper functions

Ripped from bonzo :heart: @ded

classie.has( element, 'my-class' ) // returns true/false
classie.add( element, 'my-new-class' ) // add new class
classie.remove( element, 'my-unwanted-class' ) // remove class
classie.toggle( element, 'my-class' ) // toggle class

Package management

Install with Bower :bird: bower install classie

Install with npm npm install desandro-classie

Install with Component component install desandro/classie

MIT license

classie is released under the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free