Socket
Socket
Sign inDemoInstall

element-removeclass

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    element-removeclass

Tiny zero dependency helper module for removing classes from elements


Version published
Weekly downloads
316
increased by14.91%
Maintainers
1
Install size
5.35 kB
Created
Weekly downloads
 

Readme

Source

element-removeclass

Tiny zero dependency helper module for removing classes from elements

This emulates jQuery's removeClass behaviour: it works for multiple elements, can take a space delimitted String for multiple classes, and even works in awful browsers.

removeClass(elements, 'class-1 class-2 class-3');

Installation and usage

Grab from NPM

npm install element-removeclass

And import it

import removeClass from 'element-removeclass';

Or grab the minified JavaScript from unpkg

<script src="https://unpkg.com/element-removeclass"></script>

Keywords

FAQs

Last updated on 29 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc