Have ideas to improve npm?Join in the discussion! »

    class-stuff

    1.1.0 • Public • Published

    class-stuff

    stable

    A javascript module with: addClass, removeClass and hasClass methods

    var classStuff = require('class-stuff');
     
    var alertField = document.getElementById('alert-field');
     
    classStuff.removeClass(alertField, 'alert-danger');
    classStuff.addClass(alertField, 'alert-success' );
    classStuff.hasClass(alertField, '.alert-info' ); // false
     

    Usage

    NPM

    Install

    npm i class-stuff

    DownloadsWeekly Downloads

    5

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar