{"bugs":{"url":"https://github.com/robinweser/fela/issues"},"dist":{"shasum":"c02a2ea1cdb6e1334c6248eca94f279ad3e9fb41","tarball":"https://registry.npmjs.org/fela-plugin-embedded/-/fela-plugin-embedded-11.5.0-rc.0.tgz","fileCount":5,"integrity":"sha512-iMjZ2wNimFvIB9IMTuu/4sjS5rDh8PbuARoCw4LyqZZVxOHCdADcubrnqb9CoVyPQX1NzEWCHXV16sDgI/KYfQ==","signatures":[{"sig":"MEQCIHAYMwjJ+YM1V/htwjWt/A7xpk5jFV1tXU8+l6w0nNAcAiBwvgpFGWsyziav+X8TjeHTDPdksB1nsHiudbjGpZtxVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz1SRCRA9TVsSAnZWagAAHucP/jJmBd2KDdeQ+CKYqh7n\nh/C7um6p63XbAaSUKyPmAhA7JZX6TtqS8VTP8Ltq3XDbpz9ifJFm4dckQYit\nibfkHBRF0UPlh2+A5kqsH7XRqrrcVsmZCgUvgnUg1slzlGPuUeIyAXLNt20z\nH3RQeGKEpYhhVtOwn86/KGBvSuOF8no4O9rptIH9jORUWCJ6T4iGN1lGVsaL\nVviosQz4v5Pb+TIv9OtvaIzYrLIRZGVaD2uiJ24pyvQ4EgBAu9QWBVxNCCRx\n3qh/oQf4mRzClCQph5aI/nz4mpFbTMTcBqWHTmMZ91tyGl1PCoHVTuTlhbc5\nQQqLjcrbNwmLRzmJGL1ztu+SlPTunho/gV4rY/c8Jzt+BP6lpp+HwoSGQsB3\nHCQ640PFx78JakhTZvSnvkyQkafjk5Ytn42XnX6RCbD2bgiB7Ih8metOaOoY\n8MYx334Pd2gbtlCLlfmy9gu7RZFaf0FWjmo9JUIp4EaCwVLb8seT4WuVgHN5\nsrqnW2NVSuzFc1oy+RWl/t6tYJIBIOY2M7YIC1vaRXKuvK9lhY/tA1WQOUUz\n2VjpxgNEX42K8eMroKKTr9tpmoo+Ovbz3mkb6ovNjGnstQME/RJX4Ahhi17H\ngqjR59WDDSNKeRUMQpvsf178AhPqQP8YGrkmwQfDnhA1+/BeR8yU4p4pASIt\nHLwf\r\n=11XX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"fela-plugin-embedded","author":{"name":"Robin Weser"},"module":"es/index.js","readme":"# fela-plugin-embedded\n\n<img alt=\"npm version\" src=\"https://badge.fury.io/js/fela-plugin-embedded.svg\"> <img alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/fela-plugin-embedded.svg\"> <a href=\"https://bundlephobia.com/result?p=fela-plugin-embedded@latest\"><img alt=\"Bundlephobia\" src=\"https://img.shields.io/bundlephobia/minzip/fela-plugin-embedded.svg\"></a>\n\nThis plugins allows the use of inline keyframes and font-faces. It directly resolves them while rendering and only returns the correct reference.\n\n## Installation\n```sh\nyarn add fela-plugin-embedded\n```\nYou may alternatively use `npm i --save fela-plugin-embedded`.\n\n## Usage\nMake sure to read the documentation on [how to use plugins](http://fela.js.org/docs/advanced/Plugins.html).\n\n```javascript\nimport { createRenderer } from 'fela'\nimport embedded from 'fela-plugin-embedded'\n\nconst renderer = createRenderer({\n  plugins: [ embedded() ]\n})\n```\n\n## Example\n#### Input\n```javascript\n{\n  width: '25px',\n  animationName: {\n    '0%': { color: 'red ' },\n    '100%': { color: 'blue' }\n  },\n  fontFace: {\n    fontFamily: 'Arial',\n    src: [\n      '../Arial.svg',\n      '../Arial.ttf'\n    ]\n  }\n}\n```\n#### Output\n```javascript\n{\n  width: '25px',\n  animationName: 'k1',\n  fontFamily: 'Arial'\n}\n```\n\n### Base64 encoded font-faces\n\n```javascript\n{\n  fontFace: {\n    fontFamily: 'font-name',\n    src: [\n      'data:application/x-font-woff;charset=utf-8;base64,PASTE-BASE64-HERE'\n    ]\n  }\n}\n```\n\n### Multiple font-faces\n\n```javascript\n{\n  fontFace: [{\n      fontFamily: 'Arial',\n      fontWeight: 400\n      src: [\n        'arial-regular.svg',\n        'arial-regular.ttf'\n      ]\n    },\n    {\n      fontFamily: 'Arial',\n      fontWeight: 700,\n      src: [\n        'arial-bold.svg',\n        'arial-bold.ttf'\n      ]\n    }]\n}\n```\n\n## License\nFela is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br>\nDocumentation is licensed under [Creative Commons License](http://creativecommons.org/licenses/by/4.0/).<br>\nCreated with ♥ by [@robinweser](http://weser.io) and all the great contributors.\n","gitHead":"6d457d39e69e1471bddaea8591c50745f95070d9","license":"MIT","_npmUser":{"name":"rofrischmann","email":"robin@weser.io"},"homepage":"https://github.com/robinweser/fela#readme","keywords":["fela","fela-plugin","embedded","cssinjs"],"repository":{"url":"git+https://github.com/robinweser/fela.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (darwin)","description":"Fela plugin that resolves embedded keyframes and font faces","directories":{},"jsnext:main":"es/index.js","maintainers":[{"name":"rofrischmann","email":"robin@weser.io"},{"name":"txhawks","email":"tofu.hawks@gmail.com"}],"sideEffects":false,"_nodeVersion":"12.18.3","dependencies":{"isobject":"^3.0.1","fast-loops":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fela":"^11.5.0-rc.0","fela-tools":"^11.5.0-rc.0"},"_npmOperationalInternal":{"tmp":"tmp/fela-plugin-embedded_11.5.0-rc.0_1607423120850_0.03996717636093905","host":"s3://npm-registry-packages"},"_id":"fela-plugin-embedded@11.5.0-rc.0","version":"11.5.0-rc.0"}