HEX
Server: Apache/2.4.18 (Ubuntu)
System: Linux ubuntu 7.0.5-x86_64-linode173 #1 SMP PREEMPT_DYNAMIC Fri May 8 10:12:05 EDT 2026 x86_64
User: root (0)
PHP: 7.2.28-1+ubuntu16.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //opt/code/node_modules/cssnano/node_modules/postcss-zindex/package.json
{
  "name": "postcss-zindex",
  "version": "2.2.0",
  "description": "Reduce z-index values with PostCSS.",
  "main": "index.js",
  "scripts": {
    "lint": "jshint index.js lib/*.js --reporter node_modules/jshint-stylish/stylish.js",
    "test": "tape test.js | tap-spec"
  },
  "files": [
    "LICENSE-MIT",
    "index.js",
    "lib"
  ],
  "keywords": [
    "css",
    "normalize",
    "optimise",
    "optimisation",
    "postcss",
    "postcss-plugin",
    "z-index"
  ],
  "license": "MIT",
  "dependencies": {
    "has": "^1.0.1",
    "postcss": "^5.0.4",
    "uniqs": "^2.0.0"
  },
  "devDependencies": {
    "jshint": "^2.8.0",
    "jshint-stylish": "^2.0.1",
    "tap-spec": "^4.1.0",
    "tape": "^4.2.0"
  },
  "homepage": "https://github.com/ben-eb/postcss-zindex",
  "author": {
    "name": "Ben Briggs",
    "email": "beneb.info@gmail.com",
    "url": "http://beneb.info"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/ben-eb/postcss-zindex"
  },
  "readme": "# [postcss][postcss]-zindex [![Build Status](https://travis-ci.org/ben-eb/postcss-zindex.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-zindex.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-zindex.svg)][deps]\n\n> Reduce z-index values with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-zindex) do:\n\n```\nnpm install postcss-zindex --save\n```\n\n## Example\n\nSometimes, you may introduce z-index values into your CSS that are larger than\nnecessary, in order to improve your understanding of how each stack relates to\nthe others. For example, you might have a modal overlay at `5000` and the dialog\nfor it at `5500` - so that modal classes occupy the `5xxx` space.\n\nBut in production, it is unnecessary to use such large values for z-index where\nsmaller values would suffice. This module will reduce all z-index declarations\nwhilst respecting your original intent; such that the overlay becomes `1` and\nthe dialog becomes `2`. For more examples, see the [tests](test.js).\n\n### Input\n\n```css\n.modal {\n    z-index: 5000\n}\n\n.modal-overlay {\n    z-index: 5500\n}\n```\n\n### Output\n\n```css\n.modal {\n    z-index: 1\n}\n\n.modal-overlay {\n    z-index: 2\n}\n```\n\nNote that this module does not attempt to normalize relative z-index values,\nsuch as `-1`; indeed, it will abort immediately when encountering these values\nas it cannot be sure that rebasing mixed positive & negative values will keep\nthe stacking context intact. Be careful with using this module alongside\nJavaScript injected CSS; ideally you should have already extracted all of your\nstacking context into CSS.\n\n## API\n\n### zindex([options])\n\n#### options\n\n##### startIndex\n\nType: `number`\nDefault: `1`\n\nSet this to any other positive integer if you want to override z-indices from\nother sources outside your control. For example if a third party widget has a\nmaximum z-index of `99`, you can set this to `100` and not have to worry about\nstacking conflicts.\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[ci]:      https://travis-ci.org/ben-eb/postcss-zindex\n[deps]:    https://gemnasium.com/ben-eb/postcss-zindex\n[npm]:     http://badge.fury.io/js/postcss-zindex\n[postcss]: https://github.com/postcss/postcss\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/ben-eb/postcss-zindex/issues"
  },
  "_id": "postcss-zindex@2.2.0",
  "dist": {
    "shasum": "789f94d958f9db7f08defef3252da98a8ff1f43b"
  },
  "_from": "postcss-zindex@^2.0.1",
  "_resolved": "http://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz"
}