Nocturnal Prancing Mosquito

    x-class-name

    1.0.0 • Public • Published

    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

    Keywords

    Install

    npm i x-class-name

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • lexarx