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

postcss-log-warnings

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-log-warnings - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

CHANGELOG.md

2

index.js

@@ -22,3 +22,3 @@ 'use strict';

process.on('exit', function() {
process.exit(exitCode);
if (exitCode) process.exit(exitCode);
});
{
"name": "postcss-log-warnings",
"version": "0.1.0",
"version": "0.1.1",
"description": "Log PostCSS warnings in the console",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,13 +13,4 @@ # postcss-log-warnings [![Build Status](https://travis-ci.org/davidtheclark/postcss-log-warnings.svg?branch=master)](https://travis-ci.org/davidtheclark/postcss-log-warnings)

Something like this (using fake plugins) ...
![Example](example.png?raw=true)
```
test/forVisual.css
2:3 [reject-colors] no colors allowed
6:1 [reject-colors] no colors allowed
7:6 [reject-backgrounds] no backgrounds allowed
```
... except that the plugin uses [chalk](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB4QFjAA&url=https%3A%2F%2Fgithub.com%2Fsindresorhus%2Fchalk&ei=O3QkVZ6QNoa4sAXjo4HgCQ&usg=AFQjCNFsl0WVrLJkcmEivcr4eAsYYAsdrw&bvm=bv.90237346,d.eXY) for helpful coloring & formatting in the console output.
## Installation

@@ -53,3 +44,9 @@

- **plugins** (array of strings, default = []): If empty, `logWarnings` will log every warning, regardless of which plugin registered it. To limit output, name the plugins whose warnings you would like to see. For example, `{ plugins: ['postcss-bem-linter'] }` will only log warnings from the `postcss-bem-linter` plugin.
- **throwError** (boolean, default = `false`): If `true`, after `logWarnings` logs your warnings it will exit the process with code 1 if it found any warnings.
- **plugins** (array of strings, default = [])
If empty, `logWarnings` will log every warning, regardless of which plugin registered it.
To limit output, name the plugins whose warnings you would like to see.
For example, `{ plugins: ['postcss-bem-linter'] }` will only log warnings from the `postcss-bem-linter` plugin.
- **throwError** (boolean, default = `false`)
If `true`, after `logWarnings` logs your warnings it will exit the process with code 1 if it found any warnings.
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