{"_id":"postcss-functions","_rev":"326429","name":"postcss-functions","description":"PostCSS plugin for exposing JavaScript functions","dist-tags":{"latest":"4.0.2","next":"3.0.0-beta.2"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"time":{"modified":"2021-06-07T02:44:49.000Z","created":"2015-08-04T12:12:09.704Z","4.0.2":"2020-11-08T16:20:18.866Z","4.0.1":"2020-11-08T15:59:02.600Z","4.0.0":"2020-11-08T15:33:34.199Z","3.0.0":"2017-08-13T16:03:33.165Z","3.0.0-beta.2":"2017-08-09T17:20:52.102Z","3.0.0-beta.1":"2017-08-08T23:03:26.062Z","3.0.0-beta.0":"2017-08-08T21:50:10.307Z","2.1.1":"2016-10-08T12:41:38.772Z","2.1.0":"2016-01-28T16:20:56.923Z","2.0.0":"2015-11-09T08:37:07.043Z","1.0.0":"2015-08-04T12:12:09.704Z"},"users":{"ahmedelgabri":true,"mikeljames":true},"author":{"name":"Andy Jansson"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"versions":{"4.0.2":{"name":"postcss-functions","version":"4.0.2","description":"PostCSS plugin for exposing JavaScript functions","main":"dest/index.js","scripts":{"prepublish":"npm run build","build":"babel src -d dest","pretest":"eslint --ext .mjs src","test":"ava src/__tests__/index.mjs"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"postcss-value-parser":"^4.0.0"},"peerDependencies":{"postcss":"^8.0.0"},"devDependencies":{"@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/preset-env":"^7.11.5","ava":"^3.13.0","babel-plugin-add-module-exports":"^1.0.4","babel-plugin-module-extension":"^0.1.3","eslint":"^7.10.0","eslint-config-i-am-meticulous":"^12.0.0","postcss":"^8.0.0"},"eslintConfig":{"extends":"eslint-config-i-am-meticulous"},"gitHead":"6bf27f8f0a2174092fab268b8d086bdf39a1578b","_id":"postcss-functions@4.0.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"shasum":"23a7d100f507890042fbd0305f963554e6d1ce6a","size":3633,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-4.0.2.tgz"},"_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"directories":{},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions_4.0.2_1604852418745_0.23793299899308828"},"_hasShrinkwrap":false,"publish_time":1604852418866,"_cnpm_publish_time":1604852418866},"4.0.1":{"name":"postcss-functions","version":"4.0.1","description":"PostCSS plugin for exposing JavaScript functions","main":"dest/index.js","scripts":{"prepublish":"npm run build","build":"babel src -d dest","pretest":"eslint --ext .mjs src","test":"ava src/__tests__/index.mjs"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"postcss-value-parser":"^4.0.0"},"peerDependencies":{"postcss":"^8.0.0"},"devDependencies":{"@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/preset-env":"^7.11.5","ava":"^3.13.0","babel-plugin-module-extension":"^0.1.3","eslint":"^7.10.0","eslint-config-i-am-meticulous":"^12.0.0","postcss":"^8.0.0"},"eslintConfig":{"extends":"eslint-config-i-am-meticulous"},"gitHead":"86ae864bc1e10da06d4816d42e4f6e6d3333caaf","_id":"postcss-functions@4.0.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"shasum":"9eee48aac8e276e7e57077703e7b1082bcbd399b","size":3608,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-4.0.1.tgz"},"_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"directories":{},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions_4.0.1_1604851142455_0.12744375957020404"},"_hasShrinkwrap":false,"publish_time":1604851142600,"_cnpm_publish_time":1604851142600,"deprecated":"Missing"},"4.0.0":{"name":"postcss-functions","version":"4.0.0","description":"PostCSS plugin for exposing JavaScript functions","main":"dest/index.js","scripts":{"prepublish":"npm run build","build":"babel src -d dest","pretest":"eslint --ext .mjs src","test":"ava src/__tests__/index.mjs"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"postcss-value-parser":"^4.0.0"},"peerDependencies":{"postcss":"^8.0.0"},"devDependencies":{"@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/preset-env":"^7.11.5","ava":"^3.13.0","eslint":"^7.10.0","eslint-config-i-am-meticulous":"^12.0.0","postcss":"^8.0.0"},"eslintConfig":{"extends":"eslint-config-i-am-meticulous"},"gitHead":"e4d782288f43eda811723e9f9756aa4b0e42118d","_id":"postcss-functions@4.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"shasum":"03025ee1b4b919212ab598f2b15edc7015131e03","size":2707,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-4.0.0.tgz"},"_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"directories":{},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions_4.0.0_1604849614093_0.06947878779578787"},"_hasShrinkwrap":false,"publish_time":1604849614199,"_cnpm_publish_time":1604849614199,"deprecated":"Bug"},"3.0.0":{"name":"postcss-functions","version":"3.0.0","description":"PostCSS plugin for exposing JavaScript functions","main":"dist/index.js","files":["dist","LICENSE"],"scripts":{"prepublish":"npm run build && del-cli dist/__tests__","build":"del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist","pretest":"eslint src && npm run build","test":"nyc ava src/__tests__/"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^7.1.2","object-assign":"^4.1.1","postcss":"^6.0.9","postcss-value-parser":"^3.3.0"},"devDependencies":{"ava":"^0.21.0","babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-eslint":"^7.2.3","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.6.0","babel-register":"^6.24.1","cross-env":"^5.0.5","del-cli":"^1.1.0","eslint":"^4.4.1","eslint-config-i-am-meticulous":"^6.0.1","eslint-plugin-babel":"^4.1.2","eslint-plugin-import":"^2.7.0","nyc":"^11.1.0"},"ava":{"require":"babel-register"},"eslintConfig":{"parser":"babel-eslint","extends":"eslint-config-i-am-meticulous"},"gitHead":"02ed7b05c85f9ec781dcebf567eb1cfee8f16991","_id":"postcss-functions@3.0.0","_shasum":"0e94d01444700a481de20de4d55fb2640564250e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"dist":{"shasum":"0e94d01444700a481de20de4d55fb2640564250e","size":3616,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-3.0.0.tgz"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions-3.0.0.tgz_1502640212265_0.4111393755301833"},"directories":{},"publish_time":1502640213165,"_cnpm_publish_time":1502640213165,"_hasShrinkwrap":false},"3.0.0-beta.2":{"name":"postcss-functions","version":"3.0.0-beta.2","description":"PostCSS plugin for exposing JavaScript functions","main":"dist/index.js","files":["dist","LICENSE"],"scripts":{"prepublish":"npm run build && del-cli dist/__tests__","build":"del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist","pretest":"eslint src && npm run build","test":"nyc ava src/__tests__/"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^7.1.2","object-assign":"^4.1.1","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"devDependencies":{"ava":"^0.21.0","babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^7.1.1","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.4.0","babel-register":"^6.18.0","cross-env":"^5.0.5","del-cli":"^1.1.0","eslint":"^4.4.1","eslint-config-i-am-meticulous":"^6.0.1","eslint-plugin-babel":"^4.0.0","eslint-plugin-import":"^2.2.0","nyc":"^11.1.0"},"ava":{"require":"babel-register"},"eslintConfig":{"parser":"babel-eslint","extends":"eslint-config-i-am-meticulous"},"gitHead":"09a418f4ab67d5a087167aa0db7b21a400120a9c","_id":"postcss-functions@3.0.0-beta.2","_shasum":"03bee3bcc00aa1cfb21cb0605de8d0bf9ccc63ed","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"dist":{"shasum":"03bee3bcc00aa1cfb21cb0605de8d0bf9ccc63ed","size":3617,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-3.0.0-beta.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-3.0.0-beta.2.tgz"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions-3.0.0-beta.2.tgz_1502299251234_0.19375081546604633"},"directories":{},"publish_time":1502299252102,"_cnpm_publish_time":1502299252102,"_hasShrinkwrap":false},"3.0.0-beta.1":{"name":"postcss-functions","version":"3.0.0-beta.1","description":"PostCSS plugin for exposing JavaScript functions","main":"dist/index.js","files":["dist","LICENSE"],"scripts":{"prepublish":"npm run build && del-cli dist/__tests__","build":"del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist","pretest":"eslint src && npm run build","test":"nyc ava src/__tests__/"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^7.1.2","object-assign":"^4.1.1","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"devDependencies":{"ava":"^0.21.0","babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^7.1.1","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.4.0","babel-register":"^6.18.0","cross-env":"^5.0.5","del-cli":"^1.1.0","eslint":"^4.4.1","eslint-config-i-am-meticulous":"^6.0.1","eslint-plugin-babel":"^4.0.0","eslint-plugin-import":"^2.2.0","nyc":"^11.1.0"},"ava":{"require":"babel-register"},"eslintConfig":{"parser":"babel-eslint","extends":"eslint-config-i-am-meticulous"},"gitHead":"5d5e3475e63dcb858fc1bd49a05c9a35fa781352","_id":"postcss-functions@3.0.0-beta.1","_shasum":"a1dbb5065ad42d307fb8b0604414a43b455fad24","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"dist":{"shasum":"a1dbb5065ad42d307fb8b0604414a43b455fad24","size":3423,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-3.0.0-beta.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-3.0.0-beta.1.tgz"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions-3.0.0-beta.1.tgz_1502233405173_0.8077220406848937"},"directories":{},"publish_time":1502233406062,"_hasShrinkwrap":false,"_cnpm_publish_time":1502233406062},"3.0.0-beta.0":{"name":"postcss-functions","version":"3.0.0-beta.0","description":"PostCSS plugin for exposing JavaScript functions","main":"dist/index.js","files":["dist","LICENSE"],"scripts":{"prepublish":"npm run build && del-cli dist/__tests__","build":"del-cli dist && cross-env BABEL_ENV=publish babel src --out-dir dist","pretest":"eslint src && npm run build","test":"nyc ava src/__tests__/"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^7.1.2","object-assign":"^4.1.1","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"devDependencies":{"ava":"^0.21.0","babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^7.1.1","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.4.0","babel-register":"^6.18.0","cross-env":"^5.0.5","del-cli":"^1.1.0","eslint":"^4.4.1","eslint-config-i-am-meticulous":"^6.0.1","eslint-plugin-babel":"^4.0.0","eslint-plugin-import":"^2.2.0","nyc":"^11.1.0"},"ava":{"require":"babel-register"},"eslintConfig":{"parser":"babel-eslint","extends":"eslint-config-i-am-meticulous"},"gitHead":"717027b5cb79cd962bfb8c4780e738e1d4e8493a","_id":"postcss-functions@3.0.0-beta.0","_shasum":"0105fbf9fc64a93e54566562762d0002a8a52218","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"dist":{"shasum":"0105fbf9fc64a93e54566562762d0002a8a52218","size":3555,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-3.0.0-beta.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-3.0.0-beta.0.tgz"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-functions-3.0.0-beta.0.tgz_1502229009395_0.0003669285215437412"},"directories":{},"publish_time":1502229010307,"_cnpm_publish_time":1502229010307,"_hasShrinkwrap":false},"2.1.1":{"name":"postcss-functions","version":"2.1.1","description":"PostCSS plugin for exposing JavaScript functions","main":"src/index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^5.0.15","object-assign":"^4.0.1","postcss":"^5.0.10","postcss-value-parser":"^3.1.3"},"devDependencies":{"mocha":"^2.3.3"},"gitHead":"29424c75a56426ccf81404ec0536834e29d111fa","_id":"postcss-functions@2.1.1","_shasum":"f9b64d3b5690f6795fe42a180496805375b7a840","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"dist":{"shasum":"f9b64d3b5690f6795fe42a180496805375b7a840","size":3222,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-2.1.1.tgz"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-functions-2.1.1.tgz_1475930497093_0.026163632981479168"},"directories":{},"publish_time":1475930498772,"_cnpm_publish_time":1475930498772,"_hasShrinkwrap":false},"2.1.0":{"name":"postcss-functions","version":"2.1.0","description":"PostCSS plugin for exposing JavaScript functions","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","postcss-plugin","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^5.0.15","object-assign":"^4.0.1","postcss":"^5.0.10","postcss-value-parser":"^3.1.3"},"devDependencies":{"mocha":"^2.3.3"},"gitHead":"24e917deb70faed4698a917f5984868ff2db9f78","_id":"postcss-functions@2.1.0","_shasum":"77f2811b97dc7177992498a61e21b9c7ea2db44c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"dist":{"shasum":"77f2811b97dc7177992498a61e21b9c7ea2db44c","size":2759,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-2.1.0.tgz"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"directories":{},"publish_time":1453998056923,"_cnpm_publish_time":1453998056923,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-functions","version":"2.0.0","description":"PostCSS plugin for exposing JavaScript functions","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^5.0.15","postcss":"^5.0.10","reduce-function-call":"^1.0.1"},"devDependencies":{"mocha":"^2.3.3"},"gitHead":"fef9fc186a0ccf2b8a8089649b3c6618bd6fc128","_id":"postcss-functions@2.0.0","_shasum":"d8a3cdeae342285428d7ce46f3b24efd0147f594","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"dist":{"shasum":"d8a3cdeae342285428d7ce46f3b24efd0147f594","size":2383,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-2.0.0.tgz"},"directories":{},"publish_time":1447058227043,"_cnpm_publish_time":1447058227043,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-functions","version":"1.0.0","description":"PostCSS plugin for exposing JavaScript functions","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/andyjansson/postcss-functions.git"},"keywords":["postcss","javascript","function","functions"],"author":{"name":"Andy Jansson"},"license":"MIT","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"homepage":"https://github.com/andyjansson/postcss-functions","dependencies":{"glob":"^5.0.14","postcss":"^4.1.16","reduce-function-call":"^1.0.1"},"devDependencies":{"mocha":"^2.2.5"},"gitHead":"948b65638e49d3fa7f633f57ea1aa6b837e0bb86","_id":"postcss-functions@1.0.0","_shasum":"aa5d9896742252542997adf1058a217539788d36","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"andyjansson","email":"jansson.andy@gmail.com"},"maintainers":[{"name":"andyjansson","email":"jansson.andy@gmail.com"}],"dist":{"shasum":"aa5d9896742252542997adf1058a217539788d36","size":2193,"noattachment":false,"key":"/postcss-functions/-/postcss-functions-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-functions/download/postcss-functions-1.0.0.tgz"},"directories":{},"publish_time":1438690329704,"_cnpm_publish_time":1438690329704,"_hasShrinkwrap":false}},"readme":"# postcss-functions\r\n\r\n[PostCSS] plugin for exposing JavaScript functions.\r\n\r\n[PostCSS]: https://github.com/postcss/postcss\r\n\r\n## Installation\r\n\r\n```js\r\nnpm install --save-dev postcss postcss-functions\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nimport fs from 'fs';\r\nimport postcss from 'postcss';\r\nimport functions from 'postcss-functions';\r\n\r\nconst options = {\r\n\t//options\r\n};\r\n\r\nconst css = fs.readFileSync('input.css', 'utf8');\r\n\r\npostcss()\r\n  .use(functions(options))\r\n  .process(css)\r\n  .then((result) => {\r\n    const output = result.css;\r\n  });\r\n```\r\n\r\n**Example** of a function call:\r\n\r\n```css\r\nbody {\r\n  prop: foobar();\r\n}\r\n```\r\n\r\n## Options\r\n\r\n### `functions`\r\n\r\nType: `Object`\r\n\r\nAn object containing functions. The function name will correspond with the object key.\r\n\r\n**Example:**\r\n\r\n```js\r\nimport postcssFunctions from 'postcss-functions';\r\nimport { fromString, fromRgb } from 'css-color-converter';\r\n```\r\n\r\n```js\r\nfunction darken(value, frac) {\r\n  const darken = 1 - parseFloat(frac);\r\n  const rgba = fromString(value).toRgbaArray();\r\n  const r = rgba[0] * darken;\r\n  const g = rgba[1] * darken;\r\n  const b = rgba[2] * darken;\r\n  return fromRgb([r,g,b]).toHexString();\r\n}\r\n```\r\n\r\n```js\r\npostcssFunctions({\r\n  functions: { darken }\r\n});\r\n```\r\n\r\n```css\r\n.foo {\r\n  /* make 10% darker */\r\n  color: darken(blue, 0.1);\r\n}\r\n```\r\n\r\n#### Hey, what happened to `glob`?\r\n\r\nVersions prior to 4.0.0 had a globbing feature built in, but I've since decided to remove this feature from `postcss-functions`. This means one less dependency and a smaller package size. For people still interested in this feature, you are free to pair `postcss-functions` with the globbing library of your choice and pass the `import`ed JavaScript files to the `functions` option as described above. \r\n","_attachments":{},"homepage":"https://github.com/andyjansson/postcss-functions","bugs":{"url":"https://github.com/andyjansson/postcss-functions/issues"},"license":"MIT"}