{"_id":"postcss-icss-keyframes","_rev":"259169","name":"postcss-icss-keyframes","description":"PostCSS plugin for css-modules to local-scope keyframes","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"geelen","email":""},{"name":"trysound","email":""}],"time":{"modified":"2023-03-27T17:05:49.000Z","created":"2017-05-31T22:49:24.724Z","0.2.1":"2017-06-14T23:07:49.008Z","0.2.0":"2017-06-07T21:14:24.644Z","0.1.1":"2017-05-31T23:10:18.991Z","0.1.0":"2017-05-31T22:49:24.724Z"},"users":{},"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-icss-keyframes.git"},"versions":{"0.2.1":{"name":"postcss-icss-keyframes","version":"0.2.1","description":"PostCSS plugin for css-modules to local-scope keyframes","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["eslint","prettier --write","git add"]},"eslintConfig":{"parserOptions":{"ecmaVersion":6,"sourceType":"module"},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-icss-keyframes.git"},"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.2","eslint":"^4.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.6.1","prettier":"^1.4.4","strip-indent":"^2.0.0"},"dependencies":{"icss-utils":"^3.0.1","postcss":"^6.0.2","postcss-value-parser":"^3.3.0"},"gitHead":"5f890e4068820daa80025d88a4f750a3a085dcc8","bugs":{"url":"https://github.com/css-modules/postcss-icss-keyframes/issues"},"homepage":"https://github.com/css-modules/postcss-icss-keyframes#readme","_id":"postcss-icss-keyframes@0.2.1","_shasum":"80c4455e0112b0f2f9c3c05ac7515062bb9ff295","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"80c4455e0112b0f2f9c3c05ac7515062bb9ff295","size":3283,"noattachment":false,"key":"/postcss-icss-keyframes/-/postcss-icss-keyframes-0.2.1.tgz","tarball":"http://name.csiicloud.com:7001/postcss-icss-keyframes/download/postcss-icss-keyframes-0.2.1.tgz"},"maintainers":[{"name":"geelen","email":""},{"name":"trysound","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-icss-keyframes-0.2.1.tgz_1497481668061_0.5950032928958535"},"directories":{},"publish_time":1497481669008,"_hasShrinkwrap":false,"_cnpm_publish_time":1497481669008,"_cnpmcore_publish_time":"2021-12-16T18:40:48.329Z"},"0.2.0":{"name":"postcss-icss-keyframes","version":"0.2.0","description":"PostCSS plugin for css-modules to local-scope keyframes","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["eslint","prettier --write","git add"]},"eslintConfig":{"parserOptions":{"ecmaVersion":6,"sourceType":"module"},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-icss-keyframes.git"},"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.1","eslint":"^3.19.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.5.1","prettier":"^1.3.1","strip-indent":"^2.0.0"},"dependencies":{"icss-utils":"^2.1.0","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"gitHead":"311d209d4af8f53a1e353cbb57b0ddb487c4d65e","bugs":{"url":"https://github.com/css-modules/postcss-icss-keyframes/issues"},"homepage":"https://github.com/css-modules/postcss-icss-keyframes#readme","_id":"postcss-icss-keyframes@0.2.0","_shasum":"1f5e4dcf38d0c4c90b51fb778cf77a65fbca86a7","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"1f5e4dcf38d0c4c90b51fb778cf77a65fbca86a7","size":3210,"noattachment":false,"key":"/postcss-icss-keyframes/-/postcss-icss-keyframes-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/postcss-icss-keyframes/download/postcss-icss-keyframes-0.2.0.tgz"},"maintainers":[{"name":"geelen","email":""},{"name":"trysound","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-icss-keyframes-0.2.0.tgz_1496870063694_0.0725721837952733"},"directories":{},"publish_time":1496870064644,"_hasShrinkwrap":false,"_cnpm_publish_time":1496870064644,"_cnpmcore_publish_time":"2021-12-16T18:40:48.587Z"},"0.1.1":{"name":"postcss-icss-keyframes","version":"0.1.1","description":"PostCSS plugin for css-modules to local-scope keyframes","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["eslint","prettier --write","git add"]},"eslintConfig":{"parserOptions":{"ecmaVersion":6,"sourceType":"module"},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-icss-keyframes.git"},"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.1","eslint":"^3.19.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.5.1","prettier":"^1.3.1","strip-indent":"^2.0.0"},"dependencies":{"icss-utils":"^2.1.0","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"gitHead":"d50b860ac1bc14c25fbffc34de9e01de19dd5f14","bugs":{"url":"https://github.com/css-modules/postcss-icss-keyframes/issues"},"homepage":"https://github.com/css-modules/postcss-icss-keyframes#readme","_id":"postcss-icss-keyframes@0.1.1","_shasum":"6ef3a6888eb4f1cc48a86699df6dd8fbba6e4d4e","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"6ef3a6888eb4f1cc48a86699df6dd8fbba6e4d4e","size":3026,"noattachment":false,"key":"/postcss-icss-keyframes/-/postcss-icss-keyframes-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/postcss-icss-keyframes/download/postcss-icss-keyframes-0.1.1.tgz"},"maintainers":[{"name":"geelen","email":""},{"name":"trysound","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-icss-keyframes-0.1.1.tgz_1496272218027_0.7392493595834821"},"directories":{},"publish_time":1496272218991,"_hasShrinkwrap":false,"_cnpm_publish_time":1496272218991,"_cnpmcore_publish_time":"2021-12-16T18:40:48.806Z"},"0.1.0":{"name":"postcss-icss-keyframes","version":"0.1.0","description":"PostCSS plugin for css-modules to local-scope keyframes","main":"lib/index.js","files":["lib"],"scripts":{"build":"babel --out-dir lib src","test":"jest --coverage","precommit":"lint-staged","prepublish":"yarn test && yarn run build"},"lint-staged":{"*.js":["eslint","prettier --write","git add"]},"eslintConfig":{"parserOptions":{"ecmaVersion":6,"sourceType":"module"},"extends":"eslint:recommended"},"babel":{"presets":[["env",{"targets":{"node":4}}]]},"repository":{"type":"git","url":"git+https://github.com/css-modules/postcss-icss-keyframes.git"},"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","devDependencies":{"babel-cli":"^6.24.1","babel-jest":"^20.0.3","babel-preset-env":"^1.5.1","eslint":"^3.19.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^3.5.1","prettier":"^1.3.1","strip-indent":"^2.0.0"},"dependencies":{"icss-utils":"^2.1.0","postcss":"^6.0.1","postcss-value-parser":"^3.3.0"},"gitHead":"18d2c15ba7b6d8bb141e6f6040c21e84ffae17c9","bugs":{"url":"https://github.com/css-modules/postcss-icss-keyframes/issues"},"homepage":"https://github.com/css-modules/postcss-icss-keyframes#readme","_id":"postcss-icss-keyframes@0.1.0","_shasum":"aae4b8aae456b5863b2a79a3d6355fbead848878","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.3.1","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"dist":{"shasum":"aae4b8aae456b5863b2a79a3d6355fbead848878","size":2999,"noattachment":false,"key":"/postcss-icss-keyframes/-/postcss-icss-keyframes-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/postcss-icss-keyframes/download/postcss-icss-keyframes-0.1.0.tgz"},"maintainers":[{"name":"geelen","email":""},{"name":"trysound","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-icss-keyframes-0.1.0.tgz_1496270963638_0.4397791896481067"},"directories":{},"publish_time":1496270964724,"_hasShrinkwrap":false,"_cnpm_publish_time":1496270964724,"_cnpmcore_publish_time":"2021-12-16T18:40:48.994Z"}},"readme":"# postcss-icss-keyframes [![Build Status][travis-img]][travis]\r\n\r\n[PostCSS]: https://github.com/postcss/postcss\r\n[travis-img]: https://travis-ci.org/css-modules/postcss-icss-keyframes.svg\r\n[travis]: https://travis-ci.org/css-modules/postcss-icss-keyframes\r\n\r\nPostCSS plugin for css-modules to local-scope keyframes.\r\n\r\n```css\r\n@keyframes foo {\r\n  from { width: 10px; }\r\n  to { width: 100px; }\r\n}\r\n\r\n/* transforms to */\r\n\r\n:export {\r\n  foo: __scope__foo\r\n}\r\n@keyframes __scope__foo {\r\n  from { width: 10px; }\r\n  to { width: 100px; }\r\n}\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\npostcss([ require('postcss-icss-keyframes')(options) ])\r\n```\r\n\r\nSee [PostCSS] docs for examples for your environment.\r\n\r\n### Options\r\n\r\n#### generateScopeName(keyframesName, filepath, css)\r\n\r\nConverts every new animation name in `@keyframes` defintion to global alias.\r\nBy default returns `__filename__keyframesName`.\r\n\r\n### Importing animation name from another file\r\n\r\nVia [postcss-modules-values](https://github.com/css-modules/postcss-modules-values)\r\n\r\n```\r\n/* imported.css */\r\n@keyframes foo {}\r\n\r\n/* importer.css */\r\n@value foo from './imported.css';\r\n.bar {\r\n  animation-name: foo;\r\n}\r\n```\r\n\r\n### Using globally defined keyframes\r\n\r\nAnimation names are not replaced if css module does not contain `@keyframes` or `@value` defintions with the same name.\r\n\r\n```\r\n.foo {\r\n  animation-name: fade-in;\r\n}\r\n```\r\n\r\n### Messages\r\n\r\npostcss-icss-keyframes passes result.messages for each defined keyframes\r\n\r\n```\r\n{\r\n  plugin: 'postcss-icss-keyframes',\r\n  type: 'icss-scoped',\r\n  name: string, // local name\r\n  value: string // scoped name\r\n}\r\n```\r\n\r\n# License\r\n\r\nMIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)\r\n","_attachments":{},"homepage":"https://github.com/css-modules/postcss-icss-keyframes#readme","bugs":{"url":"https://github.com/css-modules/postcss-icss-keyframes/issues"},"license":"MIT"}