Socket
Socket
Sign inDemoInstall

check-if-css-is-disabled

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    check-if-css-is-disabled

Frontend JavaScript module that can determine if CSS is disabled in the browser.


Version published
Weekly downloads
11
increased by83.33%
Maintainers
1
Install size
3.84 kB
Created
Weekly downloads
 

Readme

Source

check-if-CSS-is-disabled

npm

Frontend JavaScript module that can determine if CSS is disabled in the browser.

Install

npm install check-if-css-is-disabled

Module is distributed as a browserify module. After installing with npm, you can find the browserify bundle in node_modules/check-if-css-is-disabled/dist/cssIsDisabled.js.

Alternatively, you can load it from source by pulling node_modules/check-if-css-is-disabled/cssIsDisabled.js into your application, or by packing/bundling it yourself.

Use

Once loaded into your application, usage is as follows:

var cssIsDisabled = require('check-if-css-is-disabled')()
if (cssIsDisabled) {
  // do something if CSS is disabled
}

Keywords

FAQs

Last updated on 03 Sep 2019

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