{"bugs":{"url":"https://github.com/robinweser/fela/issues"},"dist":{"shasum":"a7f4870250dcee510aee9b33775cef8d0b14d255","tarball":"https://registry.npmjs.org/fela-plugin-embedded/-/fela-plugin-embedded-12.0.0-rc.3.0.tgz","fileCount":6,"integrity":"sha512-M+gsKRCA8f/7TPp/nwIaOAHImXJl7sekeYDTUjybFAjkMWTN6Vh2QEJoc39GtBmardFCuu+T/K0Nc1DhKTmubA==","signatures":[{"sig":"MEQCIBj1LF8HgTmoV6SdSBB2hiFQpsKjSbVQchz7K21RvyVTAiB1bk8fmizH1qao2mAXDI8PH9Iayt+er1ZRPPaG4J3ymg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFR0xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0ug//Ytyp1cHDvbYcO4iv+AEk/OeFIz2PnlgQrXtxdPgbjD1ANDYQ\r\nzl2Twg2ALTLFT60Kueu2AMNJp3k755u/zZyOYNNaSufJ7VWhrFr3yL8sdRDr\r\nQZmCk6B3n98/Cjj3W1SlxB3LfV6sNwC2QDKSEc0iz0iYI1P+HraYsNXrvr5P\r\nqS0pL+RGE+vi54HeBtUDfLIDyAk0naqByBG4UGmhVuSbnokLdyFvMM9Ao6a3\r\nr4y/PXso2sF+uJW+cGbGd3d9+ybteqZvQcPNULGogIhQNKxLtKYb9ykfhNDh\r\nRnYAJQ4xRo9e1lqZDSZhEZBUqB2JS71mg7tAc8EmaziuQggeSMlQ6ymnl+Y4\r\nHu+bKZ1io2E0B7ls5YNwQPPn31HiZkHFA82URpvmZuaV6EX/EWmneZbcX+Sz\r\nXZaQ2kxDcvnVptLcUp1GqMlaDjeD8y+JvigOrmtGBTl6smYaQWNsTxAZb7fq\r\nGuhpDHWvfZ8bhk5eNznfXP5YI7ARlhwZdpRD65HXsmyR7FPvSpxqHn8y80xo\r\n2hUzcsEB0Yr8jXDY35nrJCimaEbfU6UVLl4FkfFC54Rk4S7EpM75U1CUg3OE\r\ney6aSgn8ZufeS39k2r2IqmPjSecqxmn6cfWgdtmAvqZ/g/O22kLRM+oNxm4s\r\nh0TMOJJ/ihY2bL7AfSD353gvIysmiyhiuGg=\r\n=bNQx\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](https://fela.js.org/docs/latest/advanced/plugins#using-plugins).\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":"71e887614179a10c85332e326cf1d943ca51289a","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.3.0","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.3.0","@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.3.0_1645550897820_0.15909970643654114","host":"s3://npm-registry-packages"},"_id":"fela-plugin-embedded@12.0.0-rc.3.0","version":"12.0.0-rc.3.0"}