Socket
Socket
Sign inDemoInstall

postcss-env-function

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-env-function - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

CHANGELOG.md

97

package.json
{
"name": "postcss-env-function",
"version": "4.0.2",
"version": "4.0.3",
"description": "Use env() variables in CSS",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"repository": "csstools/postcss-env-function",
"homepage": "https://github.com/csstools/postcss-env-function#readme",
"bugs": "https://github.com/csstools/postcss-env-function/issues",
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-env-function#readme",
"bugs": "https://github.com/csstools/postcss-plugins/issues",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"files": [
"CHANGELOG.md",
"INSTALL.md",
"LICENSE.md",
"README.md",
"dist"
],
"bin": {
"postcss-env-function": "dist/cli.mjs"
},
"scripts": {
"build": "npx rollup -c .rollup.js",
"build:watch": "npx rollup -c .rollup.js --watch",
"lint": "npx eslint --cache src",
"lint:fix": "npx eslint --cache --fix",
"pretest": "npm run build",
"test": "npm run lint && npm run tape",
"tape": "postcss-tape",
"prepublishOnly": "npm test"
"build": "rollup -c ../../rollup/default.js",
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
"lint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"stryker": "stryker run --logLevel error",
"test": "postcss-tape --ci"
},
"engines": {
"node": ">=12"
"node": "^12 || ^14 || >=16"
},
"dependencies": {
"postcss-values-parser": "6.0.1"
"postcss-value-parser": "^4.2.0"
},
"peerDependencies": {
"postcss": "^8.3"
},
"devDependencies": {
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@rollup/plugin-babel": "^5.3.0",
"eslint": "^8.1.0",
"postcss": "^8.3.6",
"postcss-tape": "^6.0.1",
"pre-commit": "^1.2.2",
"rollup": "^2.58.3"
"postcss-tape": "^6.0.1"
},
"babel": {
"presets": [
[
"@babel/env",
{
"targets": "maintained node versions"
}
]
]
"peerDependencies": {
"postcss": "^8.3"
},
"eslintConfig": {
"env": {
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"semi": [
"error",
"never"
]
}
},
"rollup": {
"input": "src/index.js",
"plugins": [
"@rollup/plugin-babel"
],
"output": [
{
"exports": "default",
"file": "dist/index.cjs",
"format": "cjs"
},
{
"file": "dist/index.mjs",
"format": "esm"
}
]
},
"keywords": [

@@ -99,3 +51,8 @@ "postcss",

"functions"
]
],
"repository": {
"type": "git",
"url": "https://github.com/csstools/postcss-plugins.git",
"directory": "plugins/postcss-env-function"
}
}

@@ -5,3 +5,3 @@ # PostCSS Environment Variables [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss]

[<img alt="CSS Standard Status" src="https://cssdb.org/badge/environment-variables.svg" height="20">][css-url]
[<img alt="Build Status" src="https://github.com/csstools/postcss-env-function/workflows/test/badge.svg" height="20">][cli-url]
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg" height="20">][cli-url]
[<img alt="Support Chat" src="https://img.shields.io/badge/support-chat-blue.svg" height="20">][git-url]

@@ -42,13 +42,5 @@

Use [PostCSS Environment Variables] to process your CSS:
Use it as a [PostCSS] plugin:
```js
const postcssEnvFunction = require('postcss-env-function')
postcssEnvFunction.process(YOUR_CSS /*, processOptions, pluginOptions */)
```
Or use it as a [PostCSS] plugin:
```js
const postcss = require('postcss')

@@ -142,3 +134,3 @@ const postcssEnvFunction = require('postcss-env-function')

[cli-url]: https://github.com/csstools/postcss-env-function/actions/workflows/test.yml?query=workflow/test
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[css-url]: https://cssdb.org/#environment-variables

@@ -150,5 +142,5 @@ [git-url]: https://gitter.im/postcss/postcss

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Environment Variables]: https://github.com/csstools/postcss-env-function
[PostCSS Environment Variables]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-env-function
[custom property names]: https://drafts.csswg.org/css-variables-1/#typedef-custom-property-name
[declaration value names]: https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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