{"library":"ignore-styles","type":"library","category":null,"description":"ignore-styles is a utility that provides a Node.js `require` hook to prevent style and asset imports (like CSS, SASS, images, videos) from causing `SyntaxError` crashes when running JavaScript code directly in Node.js, typically during testing environments (e.g., Mocha) that don't process these file types. It is currently at version 5.0.1 and primarily sees updates to extend the list of default ignored file extensions, with major version increments reflecting these additions. A key differentiator is its specific purpose for Node.js execution *outside* of a Webpack build process, contrasting with Webpack-specific loaders like `ignore-loader`. It offers flexibility through a customizable list of file extensions to ignore and an optional custom handler function for more advanced scenarios, such as returning mock data for `react-css-modules`.","language":"javascript","status":"active","version":"5.0.1","tags":["javascript","webpack","css","testing"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ignore-styles","imports":["import 'ignore-styles'","require('ignore-styles')","import register from 'ignore-styles'; register(['.css', '.scss']);","require('ignore-styles').default(['.css', '.scss']);"]},{"cmd":"yarn add ignore-styles","imports":[]},{"cmd":"pnpm add ignore-styles","imports":[]}],"homepage":null,"github":"https://github.com/bkonkle/ignore-styles","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ignore-styles","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ignore-styles/compatibility"}}