{"bugs":{"url":"https://github.com/robinweser/fela/issues"},"dist":{"shasum":"96fd03cedfd27621ecb000a8884909eaf2110c4c","tarball":"https://registry.npmjs.org/fela-plugin-embedded/-/fela-plugin-embedded-12.0.0-rc.1.tgz","fileCount":6,"integrity":"sha512-ZdN69jrw0sOjfM+DLXyPVOYylzVRMCrtpfTUzSwZ8daORriBcbZnYszqce3n5poyImtWK1mARIBuxMATvpFSvA==","signatures":[{"sig":"MEUCIHKY+iMGe9qUn4kek2RkkUL1qhCcH6gpuqQA+0KJktnKAiEAvS82CLl8UltMZgKj2I9BMKAs8h5Tz+829gzDdZCi9ZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD3YxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqH+Q/7BvtDtthy6BIRbwWB4AqeSvECJO2vxB6MBioAy9pgr4e7GOF7\r\nIgKIAEUTNdR280PxPn18FbCv9GNtPuNISj769gyrlDg08YKKiPOXXIxRr1Gb\r\ncH6vX96vKeFFNrzwOASux5HfRiYtB50EYkrzytIBfme3MCg+Da1G77su+n7V\r\nndBZtJ667iehlp/es7deepirN7U1luwUHXa7yBgDWdDPfvTElzO/4G+14/Z3\r\nemef67Pem3xiF3DEqAsrV+2uy4eNbQZDLnTAbfTBAVsDEDiMhwm/0mzIvU0g\r\n9eISj5kXpUxKJ59yAfeNpiofs3cENnPQilXA1SoMVyd5A2CRL7iAjoOD8x1X\r\ndPcV+aJYcBqxzmfSR0fwCjjUuNmqioE4AUtDU5+NYQoOYdjDEZNNU0NrygGh\r\nnLYH0QFt4CYLlzk6vJUZ+S38rrtzOMqo8ug0WoMDPiIH6BiP5olU/CXXq7Lq\r\ndW2vqXYw4rIldh1LGF3mFhUuehJkBT6Jjs3jbsaqZuj4TO1Hy3G+nVmu/oek\r\n7DXx9qqM5UIE+ZM/b6+2iEeMzM1yD2FSjKXyz6btdKy7xnKl+E63TttHetaA\r\nH5RSVcBSeDBEIG/uH7jA+BU/uLwkGq40kUaT7R6tk3IABfYx/HR0QFdgQgC1\r\nZDrF3PWVSkcHcDzYT9TtPCpQK1Lh/aTFylU=\r\n=BpA1\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\n```sh\nyarn add fela-plugin-embedded\n```\n\nYou may alternatively use `npm i --save fela-plugin-embedded`.\n\n## Usage\n\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\n#### Input\n\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\n#### Output\n\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```js\n{\n  fontFace: [\n    {\n      fontFamily: 'Arial',\n      fontWeight: 400,\n      src: ['arial-regular.svg', 'arial-regular.ttf'],\n    },\n    {\n      fontFamily: 'Arial',\n      fontWeight: 700,\n      src: ['arial-bold.svg', 'arial-bold.ttf'],\n    },\n  ],\n}\n```\n\n### Fallback fonts\n\n```js\n{\n  fontFace: [\n    {\n      fontFamily: 'Arial',\n      fontWeight: 400,\n      src: ['arial.svg', 'arial.ttf'],\n    },\n    \"sans-serif\"\n  ],\n}\n```\n\n## License\n\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":"20e073d04b1a97beb6a099e160b0813db845a5e9","license":"MIT","scripts":{"test":"jest --config=jest.config.js","build":"pnpm clean && pnpm build:es && pnpm build:lib","clean":"rimraf lib es coverage","setup":"pnpm build","watch":"npm run watch:lib & npm run watch:es","build:es":"babel src --out-dir es --ignore **/__tests__","coverage":"pnpm test --coverage","watch:es":"babel src -d es -w","build:lib":"cross-env BABEL_ENV=commonjs babel src --out-dir lib --ignore **/__tests__","build:umd":"webpack --config webpack.config.js","watch:lib":"BABEL_ENV=commonjs babel src -d lib -w"},"_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/4.0.0/node@v14.18.2+arm64 (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":"14.18.2","dependencies":{"isobject":"^3.0.1","fast-loops":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"fela":"^12.0.0-rc.1","jest":"^26.6.0","rimraf":"^3.0.0","webpack":"^4.41.6","cross-env":"^6.0.3","@babel/cli":"^7.2.0","babel-core":"7.0.0-bridge.0","babel-jest":"^26.6.0","fela-tools":"^12.0.0-rc.1","@babel/core":"^7.2.2","@babel/node":"^7.13.0","webpack-cli":"^3.3.10","babel-loader":"^8.2.3","@babel/polyfill":"^7.7.0","@babel/preset-env":"^7.5.5","clean-webpack-plugin":"^3.0.0","@babel/plugin-transform-modules-commonjs":"^7.5.0"},"_npmOperationalInternal":{"tmp":"tmp/fela-plugin-embedded_12.0.0-rc.1_1645180465420_0.30252338080656105","host":"s3://npm-registry-packages"},"_id":"fela-plugin-embedded@12.0.0-rc.1","version":"12.0.0-rc.1"}