UNPKG

check-if-css-is-disabled

Version:

☂️ Frontend JavaScript module that can determine if CSS is disabled or if it failed to load, then take action to stop JS enhancements from applying if the CSS isn't working first.

59 lines (58 loc) 1.71 kB
{ "name": "check-if-css-is-disabled", "description": "☂️ Frontend JavaScript module that can determine if CSS is disabled or if it failed to load, then take action to stop JS enhancements from applying if the CSS isn't working first.", "author": "Roosevelt Framework Team <rooseveltframework@gmail.com>", "contributors": [ { "name": "Contributors", "url": "https://github.com/rooseveltframework/check-if-CSS-is-disabled/graphs/contributors" } ], "version": "2.0.2", "files": [ "dist" ], "exports": { ".": { "import": "./dist/check-if-css-is-disabled.mjs", "require": "./dist/check-if-css-is-disabled.cjs" }, "./min": { "default": "./dist/check-if-css-is-disabled.min.mjs" } }, "homepage": "https://github.com/rooseveltframework/check-if-CSS-is-disabled", "license": "CC-BY-4.0", "main": "check-if-css-is-disabled.js.js", "devDependencies": { "@jsdevtools/coverage-istanbul-loader": "3.0.5", "@playwright/test": "1.51.1", "express": "4.21.2", "nyc": "17.1.0", "standard": "17.1.2", "webpack-cli": "6.0.1" }, "scripts": { "build": "webpack", "lint": "standard", "lint-fix": "standard --fix", "test": "npm run build && playwright test", "coverage": "npm run build -- --env coverage && nyc playwright test && npm run build" }, "standard": { "ignore": [ "dist/" ] }, "repository": { "type": "git", "url": "git://github.com/rooseveltframework/check-if-CSS-is-disabled.git" }, "keywords": [ "CSS", "disabled", "progressive enhancement", "PE" ], "funding": "https://www.paypal.com/donate/?hosted_button_id=2L2X8GRXZCGJ6" }