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.0 to 1.0.1

LICENSE

2

package.json
{
"name": "ignore-styles",
"version": "1.0.0",
"version": "1.0.1",
"description": "Ignore imported style files when running in Node",

@@ -5,0 +5,0 @@ "scripts": {

@@ -21,2 +21,24 @@ # ignore-styles

This should work for more than just the "css" extension, because `ignore-styles`
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).
You can also use it just like `babel/register`:
import 'ignore-styles'
Or in ES5:
require('ignore-styles')
To customize the extensions used:
import register from 'ignore-styles'
register(['.sass', '.scss'])
To customize the extensions in ES5:
require('ignore-styles')(['.sass', '.scss'])
Enjoy!

@@ -32,1 +54,2 @@

[package-url]: https://npmjs.org/package/ignore-styles
[default-extensions]: https://github.com/bkonkle/ignore-styles/blob/master/ignore-styles.js#L1
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