Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ignore-styles

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore-styles - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

package.json
{
"name": "ignore-styles",
"version": "1.0.1",
"version": "1.0.2",
"description": "Ignore imported style files when running in Node",
"main": "lib/ignore-styles.js",
"scripts": {

@@ -6,0 +7,0 @@ "test": "mocha --compilers js:babel-register",

@@ -22,22 +22,36 @@ # ignore-styles

This should work for more than just the "css" extension, because `ignore-styles`
automatically registers itself for a number of extensions (see
automatically registers itself for a number of extensions. See
[DEFAULT_EXTENSIONS][default-extensions] for the full list, and send a pull
request if you need more).
request if you need more.
## More Examples
To use this with multiple Mocha compilers:
mocha --compilers js:babel-register,css:ignore-styles
You can also use it just like `babel/register`:
```javascript
import 'ignore-styles'
```
Or in ES5:
In ES5:
```javascript
require('ignore-styles')
```
To customize the extensions used:
```javascript
import register from 'ignore-styles'
register(['.sass', '.scss'])
```
To customize the extensions in ES5:
```javascript
require('ignore-styles')(['.sass', '.scss'])
```

@@ -44,0 +58,0 @@ Enjoy!

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc