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

postcss-syntax

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-syntax - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

document.js

49

package.json
{
"name": "postcss-syntax",
"version": "0.1.0",
"version": "0.2.0",
"description": "Automatically switch PostCSS syntax by file extensions",
"main": "lib/index.js",
"scripts": {
"report-coverage": "codecov",
"pretest": "eslint lib test",
"test": "nyc mocha --no-timeouts"
},
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"reporter": [
"lcov",
"text"
],
"all": true,
"cache": true,
"check-coverage": true
},
"repository": {

@@ -39,29 +20,21 @@ "type": "git",

},
"homepage": "https://github.com/gucong3000/postcss-syntax#readme",
"homepage": "https://github.com/gucong3000/postcss-syntax/tree/master/packages/postcss-syntax#readme",
"peerDependencies": {
"postcss": ">=5.0.0"
},
"dependencies": {},
"devDependencies": {
"chai": "^4.1.2",
"codecov": "^3.0.0",
"eslint": "^4.19.1",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-import": "^2.11.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "^3.0.1",
"mocha": "^5.1.0",
"nyc": "^11.6.0",
"postcss": "^6.0.21",
"postcss-html": "^0.21.0",
"optionalDependencies": {
"postcss-html": "^v0.22.0",
"postcss-jsx": "^v0.0.1-beta.1",
"postcss-markdown": "^v0.22.0",
"postcss-less": "^1.1.5",
"postcss-markdown": "^0.21.0",
"postcss-parser-tests": "^6.2.1",
"postcss-safe-parser": "^3.0.1",
"postcss-sass": "^0.3.0",
"postcss-scss": "^1.0.5",
"postcss-styled": "0.1.0",
"sugarss": "^1.0.1"
},
"devDependencies": {
"postcss-html": "^v0.22.0",
"postcss-jsx": "^v0.0.1-beta.1",
"postcss-markdown": "^v0.22.0"
}
}

@@ -5,11 +5,8 @@ PostCSS Syntax

[![NPM version](https://img.shields.io/npm/v/postcss-syntax.svg?style=flat-square)](https://www.npmjs.com/package/postcss-syntax)
[![Travis](https://img.shields.io/travis/gucong3000/postcss-syntax.svg)](https://travis-ci.org/gucong3000/postcss-syntax)
[![Codecov](https://img.shields.io/codecov/c/github/gucong3000/postcss-syntax.svg)](https://codecov.io/gh/gucong3000/postcss-syntax)
[![David](https://img.shields.io/david/gucong3000/postcss-syntax.svg)](https://david-dm.org/gucong3000/postcss-syntax)
<img align="right" width="95" height="95"
title="Philosopher’s stone, logo of PostCSS"
src="http://postcss.github.io/postcss/logo.svg">
src="http://postcss.github.io/postcss/lib/logo.svg">
postcss-syntax can automatically switch the required [PostCSS](https://github.com/postcss/postcss) syntax by file extensions
postcss-syntax can automatically switch the required [PostCSS](https://github.com/postcss/lib/postcss) syntax by file extensions

@@ -26,12 +23,12 @@ ## Getting Started

- SCSS: [PostCSS-SCSS](https://github.com/postcss/postcss-scss)
- SASS: [PostCSS-SASS](https://github.com/aleshaoleg/postcss-sass)
- LESS: [PostCSS-LESS](https://github.com/shellscape/postcss-less)
- SugarSS: [SugarSS](https://github.com/postcss/sugarss)
- SCSS: [postcss-scss](https://github.com/postcss/lib/postcss-scss)
- SASS: [postcss-sass](https://github.com/aleshaoleg/postcss-sass)
- LESS: [postcss-less](https://github.com/shellscape/postcss-less)
- SugarSS: [sugarss](https://github.com/postcss/lib/sugarss)
If you want support HTML (and HTML-like)/Markdown/styled-components file format, you need to install these module:
If you want support HTML (and HTML-like)/Markdown/CSS-in-JS file format, you need to install these module:
- Markdown: [PostCSS-Markdown](https://github.com/gucong3000/postcss-markdown)
- styled components: [PostCSS-Styled](https://github.com/gucong3000/postcss-styled)
- HTML (and HTML-like): [PostCSS-HTML](https://github.com/gucong3000/postcss-html)
- CSS-in-JS: [postcss-jsx](../postcss-jsx)
- HTML (and HTML-like): [postcss-html](../postcss-html)
- Markdown: [postcss-markdown](../postcss-markdown)

@@ -46,11 +43,11 @@ ## Use Cases

test: /\.(?:[sx]?html?|[sx]ht|vue|ux|php)$/i,
split: 'html',
extract: 'html',
},
{
test: /\.(?:markdown|md)$/i,
split: 'markdown',
extract: 'markdown',
},
{
test: /\.(?:m?[jt]sx?|es\d*|pac)$/i,
split: 'styled',
extract: 'styled',
},

@@ -57,0 +54,0 @@ {

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