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

check-if-css-is-disabled

1.0.1 • Public • Published

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
}

Install

npm i check-if-css-is-disabled

DownloadsWeekly Downloads

0

Version

1.0.1

License

CC-BY-4.0

Unpacked Size

3.93 kB

Total Files

6

Last publish

Collaborators

  • avatar