Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

class-list

0.1.1 • Public • Published

class-list

A cross browser class list

Example

var elem = someElement
    , ClassList = require("class-list")
    , cl = ClassList(elem)

cl.add("foo")
cl.remove("bar")
cl.toggle("baz")

Installation

npm install class-list

Contributors

  • Raynos

MIT Licenced

Keywords

none

install

npm i class-list

Downloadsweekly downloads

6,818

version

0.1.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability