{"bugs":{"url":"https://github.com/robinweser/fela/issues"},"dist":{"shasum":"9b3fa80f7ee9c3b8b152998e9b4dbbf8dc953200","tarball":"https://registry.npmjs.org/fela-plugin-embedded/-/fela-plugin-embedded-12.0.0-y.0.tgz","fileCount":6,"integrity":"sha512-uALT8UMzXXAo9Vve7R5xFMQjK6XYOm5Boqt+CGwlpZWjknciZOqcTlX3Qn0tFmFEmrzVBudAHy1uRy3A3PLwLA==","signatures":[{"sig":"MEUCIGCcrSHhzfPB2Xr+99WCoiJ+4/IcCppwoD6PphZg1U+5AiEA/XUR3na4FLjBHcXAp42NQYy/d+O51c8rSU4mwMV8DXs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFRpkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmodmg/+Laxkd8DNL6yVoXbI+p1gHw2viFONuMxUqfMwLb+7unUpnTh3\r\nDzW9F55i/WMaKANkPrTxEN6/KPB5vnoIbUCoMqYdL+dRNxlRWXoibi0yWHdg\r\nL7VHaHW8RCEfPKAFweRieyo4R7/XsyeR0nEUabjT+ljg7rcp5s+EjwUiqCdb\r\n7EuHzPW9h7Huj25RBV+2ctbTOp/x6kYJcKxsdQUv9eujHn+QMKlffTmjegtj\r\nmLG5gVpvxLycIFIRc5DANQxz+Gufo88Ia+lS0PwjpimgmW3UNp+ho1wwxOh8\r\nM7A9mMQbV591Cj0Rbm8Ubfwb9EeLuFJlunpJTEvsobsVAgow+OcbfkYgZMD+\r\ndTatl9GqKWgbUFc/IbaVcjxxjtQmlzcO5Nd5LlTaGTMuug5T3Nhev7EwyQwk\r\nS6KQL9+nozw8imjaWyrlPzBlkES0Y4WZ/ULoskJvJBOYDNScU77MI4HsUo88\r\nu1PuDpE+uepJNr+ItBV4Maqnrd0lFUcPvPVRVRow6ujXPv8tsdfjloRD/y+o\r\njYW7OYN4UCwuCbXeazb3Q/trjCf27fGDRCZMS/69EOw5DBUJv2k0B+eMg55V\r\nRxpTt6qJxuBDn5po4FtV3gdIT1tMf3kLDx2b6TOkH0XlY3WPRFIbu54inxuG\r\nSsJOHKdF3fkdb4DEF3U/rQVidUWhIO9TLdU=\r\n=jKCb\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":"26804548dae15e08097785c19be45d072fee217e","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-y.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-y.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-y.0_1645550180110_0.27273206886238155","host":"s3://npm-registry-packages"},"_id":"fela-plugin-embedded@12.0.0-y.0","version":"12.0.0-y.0"}