x-class-name
v1.0.0
Published
Class name utilities.
Downloads
3
Readme
Class name
Class name is a JavaScript library providing a function to conditionally set DOM element class names.
Examples
var setClassName = require('x-class-name');
setClassName(element, 'hidden', true); // Adds 'hidden' class name.
setClassName(element, 'hidden', false); // Removes 'hidden' class name.
Installation
npm install --save x-class-name