{"bugs":{"url":"https://github.com/robinweser/fela/issues"},"dist":{"shasum":"5f30fe08c1c60708d2ae21fa3ed2bbdda073b418","tarball":"https://registry.npmjs.org/fela-plugin-embedded/-/fela-plugin-embedded-12.0.0-rc.0.tgz","fileCount":6,"integrity":"sha512-HIm6Afv6+Z/sECQ36fGM3F9a73KfO56c2AUhpbgQELczeINJUmp0kMItwgDHVDXtJ33U05ChtyyXw/7Kg1vQAA==","signatures":[{"sig":"MEUCIQD0v7FnEh5N58+tuFkKaw3Jt9CTwBfsXmc85Zoi2OEpBQIgZceyZfvihuCydS5R6sPsJck115u4wdMKK1TvWbJl8Tc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDS66CRA9TVsSAnZWagAANFoP/jPDE75UmXQPH26lj4Ul\ngvLKCcjOScvm3iwMtj59tCJ6PP7RTBXdSGiSdRjvmNlN+gRFVOZmaQ9caFmD\nt97zVmq3h9E2yg8My8vOIrWKPk76taLPiuAcA8k5zBECn8BKJC18FUcD5oU6\nuKuhf4C/QvDWrWXTSVqtR+/TND0o9Wf6VNV2w2prTzjdYPBSs6ToQX+stakN\nYJpdAl73mhIrGmb+0qfsHq7hXTnu3vMLW/gcvPYY/Srff6nWbsHsWQO+KSuI\nOzYRSu40otTjQLg2eMtUw/LyUzBHZTmw9ttYZUscmiMtq7oqUV/R0/HrrSQI\nf5mBhdwGiWRlKGdF3tci7H6Zx2fttQN+xnOy7E66gB7ZvHt0DT5y7mSmfHvU\ngcjMCb+4BihoDAkff2CwICJ1rr1arZWf2vnDGNAffKzKL141WDkfjTzu7yo/\nTu+yAroHGKu/rIMYHz2Xp3V/Aez9qKJ/3Npr37cEqxS61vtXEd9mWhGxZ75o\nGj29LiTqJXrpYOUlKrGYItWw3BxupW6S6Hs3WuzpDEdc8KDxUvRbUlLU+bFm\nYux95fwzFWQ6SdSGGIiRJQhxGrQkz063oaUzOpvZyRJ+/NY3GH5RuaczXTkg\n6s5Adw7M0yrSxAMGXaInXFCU0PaO3xqDhtrPn1T7Inbl8HSCfuvJRdH4Udtj\nxxT2\r\n=n6+E\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":"00f02f410f17a7693479ea3349bb3a9f223359af","license":"MIT","scripts":{"test":"jest --config=jest.config.js","build":"yarn clean && yarn build:es && yarn build:lib","clean":"rimraf lib es coverage","setup":"yarn build","watch":"npm run watch:lib & npm run watch:es","build:es":"babel src --out-dir es --ignore **/__tests__","coverage":"yarn 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.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.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.0_1645031097911_0.3229379664102805","host":"s3://npm-registry-packages"},"_id":"fela-plugin-embedded@12.0.0-rc.0","version":"12.0.0-rc.0"}