{"_id":"@considonet/g-fontasticbundler","_rev":"4-adbdf8cef8ba9deb6b85ba777fffa4f7","name":"@considonet/g-fontasticbundler","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@considonet/g-fontasticbundler","version":"1.0.0","description":"GBuild Fontastic webfont bundler","main":"./lib/api.js","keywords":["gstrap"],"author":{"name":"ConsidoNet Solutions Paweł Gabryelewicz"},"license":"MIT","dependencies":{"@considonet/g-logger":"^1.0.0","axios":"^0.18.0","css":"^2.2.3","mkdirp":"^0.5.1","sync-request":"^6.0.0"},"gitHead":"9f9cea1e974468963ff4dac5f4d2921cfc688e93","_id":"@considonet/g-fontasticbundler@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"pawelgabryelewicz","email":"npm@considonet.com"},"dist":{"integrity":"sha512-VFANPqgmvzBda0UmSfZSCU4tr5o9SNZwerwtpe5mgpK9+e2HDrVyCsaKnExB/umCnJIam4OpCU5w8Gc6Tz7cqg==","shasum":"23a68bf53145b17ef3b3f66acd708e53c530c9ca","tarball":"https://registry.npmjs.org/@considonet/g-fontasticbundler/-/g-fontasticbundler-1.0.0.tgz","fileCount":5,"unpackedSize":13226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+tJkCRA9TVsSAnZWagAAR4gP/18tgrysTdy6UQAb9idc\nnObtS/4ZlQdgZ4P6WtoNMXtVIP4lviGBSGeDt0n/AAnVPhDCWJMcrGqoZjlu\nC0LmQb2JKwGnLRlv2xLXbQ//umvoSU24XsBnrDCdP/UDfB9onL/IsYJJUmWD\nmOSSSqn3KfqldddnKmbDGpzttNvyC45HbO4m42renNZNb24ukNwMaURjh9cD\nPkYLR+5aYD0dfV17VAfERP0cYhtPx+yZMlXXgRCBK4zofX7quV6709AolWar\nHfJQIyF5I/BXEHtnuhbNVtPPrsoTIuhN0ExmNJsFQ7FMNTUF2DfhD+tuvtgO\nWt7UlA6KSuVYfr3QdLCyCsKyw3Xvni531FlYRbBhR/zsWyKnILbKJtA6LEe+\nq+4oiRmJy0MmGLL9w2nlx3NRm47pc5Ujl0ETnhj93zlfDQ1K1Y8GNnhGObtG\nkZKI/kTR9MS7vit1Vfo1I9PG3DakaX1CbmC95BELB+R9kXaaRy/5XkMqLlxR\n8ZbR3Lj8bzhgUst+VLDYmzzcu8EBY1FZeR2mESt4Yio27SdaKQsbjgFW8P2m\nL4Txz85jaEw8GrHsjc8XKBq4O6H8ibn69eoqUIMabq7cIMFLvP3oU2nKgxc4\nqA+ejLw0+VffDEUQUEBHYkry97LDZ0BFgOVzda9H+thqZMIM34L7I3qYCERn\noVau\r\n=Lomt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxdHcG2FWgCzqzx/OelXXNJtllsikfgtXDxNGcm8bN1AiBIqla/5ne7Zpzk2TeNGq7X1snsoV7tq+EblbtBVOB2Kw=="}]},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g-fontasticbundler_1.0.0_1543164516172_0.7211007467559107"},"_hasShrinkwrap":false},"1.1.0":{"name":"@considonet/g-fontasticbundler","version":"1.1.0","description":"GBuild Fontastic webfont bundler","main":"./lib/api.js","keywords":["gstrap"],"author":{"name":"ConsidoNet Solutions Paweł Gabryelewicz"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/considonet/g-fontasticbundler.git"},"dependencies":{"@considonet/g-logger":"^1.0.0","axios":"^0.18.0","css":"^2.2.3","mkdirp":"^0.5.1","sync-request":"^6.0.0"},"gitHead":"7e27431937805ebc503212bf3e54564aa433bb04","bugs":{"url":"https://github.com/considonet/g-fontasticbundler/issues"},"homepage":"https://github.com/considonet/g-fontasticbundler#readme","_id":"@considonet/g-fontasticbundler@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"pawelgabryelewicz","email":"npm@considonet.com"},"dist":{"integrity":"sha512-L5rM8uIZApRmO8NIeBOabRRdjKojpdqDFminL5n3r/OpKssyw6cRtMFioJxrq+aEGZtBZW+yh13iHX2vNpPXfA==","shasum":"a99a55fd5cc822402e617024f0a0fb9706d588ef","tarball":"https://registry.npmjs.org/@considonet/g-fontasticbundler/-/g-fontasticbundler-1.1.0.tgz","fileCount":3,"unpackedSize":5827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+tJ2CRA9TVsSAnZWagAAwNMP/0eKONyfBHhsD51hZCUI\nCui4e/pj8A9MKkyRsH9e0RuA6hmka7mCyKpIUkOrZ9mE4b989hMuZYoNUq04\nEGLRUFNUWGEDJK1jeh5sLw6zSU98IRViqD4kXagp4EqSNtCwNwuqoMk4zssd\nQ9ubp3lBaAYgCvhJTAaEZ7TqiHDWbdIfinfmMMseW/qxfvUKi0bTTfMlchqk\nH6xR6ltYbtSbl0j7VkyRPqRmEcF3mg4pJG5Z0DlFHWTnqczrTOiU+SaOnXaR\nP8y8haOnqhvj9OduNMvs/yRAP4UACoyU/gVYQF2kAac2ShB4jqrbyG6V1Upo\nmzrs6HXJRO3HRAlvxCBmp5sJLGMAvk0TKUmncnhzS6cYJ6BYTNymUTWekGvR\npBDJsVwyOvNItCNb70TLgBiCA73GW3uA2faCskIub34smmPw8IduLedEs4H2\nqdCSokUkuiANBjIU09YtKho+Facm1O5wXWlrZsYOTr/Cs+0HftUs+7wM4qY0\n4q3wEiADOQf2OLzFSlrcfCSIfGoqaBsdOiYQJOruQwgZkA4DTL3tc+PigUPI\ndev6wucYv3N2iEf55QLDACLvF6KImc2GnhHgGZol9LyBhxUPU/7Y7IA3+MAB\n0nFvD3FpUvY8+g6BG8Q3+ukzQ6kbKulz3xHpDNfytnVUE/KDz74hhXMsMIV1\nrljD\r\n=g/n2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBI+7XHESuFkRXP4vCpuTkST8jEFhhsipun/Lk9NPSspAiEA/cshzLPGfL5lDLerObPwwMvsvx72gfwIXCDfeRb6lUA="}]},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g-fontasticbundler_1.1.0_1543164534380_0.03553167365318921"},"_hasShrinkwrap":false},"1.2.0":{"name":"@considonet/g-fontasticbundler","version":"1.2.0","description":"GBuild Fontastic webfont bundler","main":"./lib/api.js","keywords":["gstrap"],"author":{"name":"ConsidoNet Solutions Paweł Gabryelewicz"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/considonet/g-fontasticbundler.git"},"dependencies":{"@considonet/g-logger":"^1.0.0","axios":"^0.18.0","css":"^2.2.3","mkdirp":"^0.5.1","sync-request":"^6.0.0"},"gitHead":"94c48e732ef67d3fbef74364f0d9b93e50fe7d76","bugs":{"url":"https://github.com/considonet/g-fontasticbundler/issues"},"homepage":"https://github.com/considonet/g-fontasticbundler#readme","_id":"@considonet/g-fontasticbundler@1.2.0","_npmVersion":"6.5.0","_nodeVersion":"10.14.1","_npmUser":{"name":"pawelgabryelewicz","email":"npm@considonet.com"},"dist":{"integrity":"sha512-Y6pnoYzt/5Lm45L2V38dT6YBYLW8FpVC399JyrRYE4efbwA3Gf/oPSW61eEfpjMRDMr4jLGI/rklp/g35gh1UQ==","shasum":"c439814729274de64a21fdbede619d289f66735e","tarball":"https://registry.npmjs.org/@considonet/g-fontasticbundler/-/g-fontasticbundler-1.2.0.tgz","fileCount":6,"unpackedSize":11740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOePdCRA9TVsSAnZWagAACWQP/1LflpKZew3DRBO2mijv\nib8OB9kVZLMkv8CrpeVNEdeISygFE4dO2NPbGuMzDAc+EXcv3DKCHmqbdBL0\ndjcxV1SaMO2kbEFDD5eIM9vONL2vVM8ueW8BfeJxVwUvgqv8pHpiUi5oIvzd\nbtaEekMquxm+TmUmZEWneGoX/J2woEu6y5t5xMZlaBM/Oys4j+4ezrzmiPjv\nRy8fMTJtblCIIM/+RXZ2WaXvURf6FsGSMOnBKsBCC9IQrltCxYoV+Y/LjWG7\nk5KGkZiekDDSMxaksFltJhMM4XslSFxXUByg/2cfrdxhPB5SGCZIaoEu8mfq\nsfm3hmsW86jzLd3ZfERilyUH8HCXNsw4VPxsTyFN5/KY+upFmnO3ePsIvhsA\nClq3+ybHTHSWNfHSd+1CnUQW8aYfvInO5AAhq0wPOcUMO9kHmkOhUtn0Qluc\nmVMN4X1c6Hq49jp7B4+XS/masXo4ZQAB+Jlek20Um3qSx5dIv9z2KM3MPUPu\np4mkcKLgcv12IgXjojSqlDT9DtzmxfAy5jaElW29k4GPkkpa0choiwz6j58x\nXky86LXTVXbQ/PrFXKvnMIrhpzFz8twstj27zg8cKu/s/ka4qXobjeLFgSYF\n15SAyOO+OtSh7I3Zh859Rpoxsu1k6+mqFp0oFYrBKhv5o12Vu2GMe/RwiA8C\nIyyJ\r\n=OltD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBDj6hlREf1QjaYzO1YB9trK8hob3XvFWW/7mHgcx/OAIhAKI9eegmMHzhj5FWbYZkaTj2gTmX+nDarfL4uvP1DBMp"}]},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g-fontasticbundler_1.2.0_1547297756786_0.7049958133930523"},"_hasShrinkwrap":false},"1.2.1":{"name":"@considonet/g-fontasticbundler","version":"1.2.1","description":"G-Build Fontastic webfont bundler","main":"./lib/api.js","keywords":["gstrap"],"author":{"name":"ConsidoNet Solutions Paweł Gabryelewicz"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/considonet/g-fontasticbundler.git"},"dependencies":{"@considonet/g-logger":"^1.0.0","axios":"^0.18.0","css":"^2.2.3","mkdirp":"^0.5.1","sync-request":"^6.0.0"},"gitHead":"90b37aede7e10e4b78ad7f139f4ef22f5b37a5d9","bugs":{"url":"https://github.com/considonet/g-fontasticbundler/issues"},"homepage":"https://github.com/considonet/g-fontasticbundler#readme","_id":"@considonet/g-fontasticbundler@1.2.1","_nodeVersion":"10.14.1","_npmVersion":"6.7.0","dist":{"integrity":"sha512-Db8JowtUJzfRyaw3fCkoBzXPHeNzb1zL8PM2DQf3HALrcFkeP23KW9csiSOrjE6j0FEJ0BdQIqGtUo98ipcQZg==","shasum":"74dece9038ee907435e8d0ca05b0cb82858f6e6e","tarball":"https://registry.npmjs.org/@considonet/g-fontasticbundler/-/g-fontasticbundler-1.2.1.tgz","fileCount":6,"unpackedSize":11809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVHvjCRA9TVsSAnZWagAA104P/RHCPjkq0d5Q+NkvgVpe\nwQQtF+mlFfsYwAP6A1H9XjMwbSD/4yBAsQTfUCyANOehBGqkCwDfUdOvwvBD\n2FPC+vtqCQeWWNDwgTNS1IQoXyjhXQpNirlNE0ykKY57PvNTxNFFqjTi8/jf\nncAZcKwVHS4CNaBJKH+P3bF+YUvKnCBENUETJFtEE/QWckiyacIwmDqdYzVJ\ndazAgQKphH8fNFB373wjUDXL+DVuoI6+uIIeDF8ifo+Eh9rrAuIwDe5FYr8b\njKLDyZoZegUYgEoTtX96L6ERr2OZhU6IBw0dlMz9Duys6moWieKDP2kOpO+Q\n5RIAXQIdJwOfZr4k/AD6AW/+F9gI5QBQXQgMG5HAxHevPhuPzvKWLbq4b1wx\nNYtSaW4Vr7MXXM11zNwloz+IddmYUp1wOTOO829BnuTjOboyWb/H9WUV4+JC\nw+nDPEEBg5+YunX8cPAZSrRALe41DX+aeQsUF7dWhB3MfnJdRjKWkLqownkj\nFB/VejbORj1REajdL17/2RrIUILbHWiP7HUJnSIq74ZAL0GKCTxNffnY1eqz\ntzcH/k1Yy+TpJN+dRjGAaVW1hVs1r8fdR/KI8GCi8ap6m+iwrmgfR7pVq4Mg\n+IiVWVjkKPhZcna5vUyDRkTSHCoVwYkstqZVXe9snmOvNi3xNi7fKbr/ysCz\n9SJY\r\n=HI3y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCorM9hoibNon7CM1DB4p/wx32l/vp1dZPrtrFJfYjbJQIhAKftSKIcTVUafUDkMtUT+9BCfPZI5/lyE+XJikm9ILKo"}]},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"_npmUser":{"name":"pawelgabryelewicz","email":"npm@considonet.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/g-fontasticbundler_1.2.1_1549040611291_0.23923897471789202"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-25T16:48:36.003Z","1.0.0":"2018-11-25T16:48:36.302Z","modified":"2022-04-05T00:59:02.318Z","1.1.0":"2018-11-25T16:48:54.501Z","1.2.0":"2019-01-12T12:55:56.882Z","1.2.1":"2019-02-01T17:03:31.377Z"},"maintainers":[{"name":"pawelgabryelewicz","email":"npm@considonet.com"}],"description":"G-Build Fontastic webfont bundler","keywords":["gstrap"],"author":{"name":"ConsidoNet Solutions Paweł Gabryelewicz"},"license":"MIT","readme":"# g-fontasticbundler\n\nLicence: MIT\n\nCopyright (C) 2018-2019 ConsidoNet Solutions\n\nwww.considonet.com\n\n## What is Fontastic?\n\n[Fontastic](http://www.fontastic.me) is an online icon font generator tool, free even for commercial use. It offers a vast choice of free icons and also allows to import and convert your own SVG file. I've found it extremely useful in our projects and decided to integrate it into [G-Build](https://github.com/considonet/g-build) -based building process. This package is a core dependency for G-Build and its internal module.\n\nFontastic allows you to download the fonts and use the icons locally but also offers excellent cloud-based hosting service (paid for commercial projects, free for personal use). To use the bundler just publish the font to the cloud (it's not against the licence) and provide proper parameters. This tool will download the assets each time you run it but your final project will not be relying on Fontastic Cloud - the files will be stored locally.\n\nThe configuration is integrated with G-Build. However if you would like to use this bundler in a separate project without G-Build, below you can find the short API doc.\n\n## How does the bundler work?\n\nThe bundler downloads the font files and parses the CSS style. On output you'll get a SCSS file with all the icon definitions + references to included webfont files according to your setup. \n\n## API\n\nThe API is exposed as a class. As for now there is no CLI interface (it's available in G-Build).\n\nUsage:\n\n```javascript\nconst FontasticBundler = require(\"@considonet/g-fontasticbundler\");\nconst bundler = new FontasticBundler();\n\nbundler.bundle(\n  \"aaAAaaAAAaaaaa\",       // The Fontastic package ID\n  \"./css\",                // Path to your CSS directory root     \n  \"./css/fonts\",          // Path to your font directory root\n  \"./css/fontastic.scss\"  // Path to generated SCSS file with icon definitions\n); \n\n```\n\nOutput directory structure for such a config:\n\n```\ncss\n│   fontastic.scss \n│\n└───fonts\n│   │   myfont.eot\n│   │   myfont.svg\n│   │   myfont.ttf\n│   │   myfont.woff\n```\n\n## Icon usage\nHTML:\n\n```html\n<!-- no additional CSS/SCSS markup required (compatible with default Fontastic usage) -->\n<div class=\"icon-myicon1\"></div>\n<div data-icon=\"myicon1\"></div>\n\n<!-- see the examples below: simple one-time usage -->\n<div class=\"myicon\"></div>\n\n<!-- see the examples below: extended usage -->\n<div class=\"el__icon el__icon--myicon\"></div>\n\n```\n\nSCSS (superpowers added by this bundler):\n\n```scss\n// Loading the file generated by the bundler\n@import \"./fontastic.scss\";\n\n// Simple one-time usage\n.myicon::before {\n    @include icon(myicon1, true); // where 'true' indicates if the mixin should load all the styles or just set content attribute\n}\n\n// Extended usage (BEM used there)\n.el__icon {\n\n    // General\n    &::before {\n        @include fIcon(); // loads the styles but doesn't set the content attribute    \n    }\n    \n    // Icons\n    // We don't set true for the second parameter because the styles are already set by the .el__icon class\n    &--myicon1::before {\n        @include icon(myicon1);\n    }\n    \n    &--myicon2::before {\n        @include icon(myicon2);\n    }\n    \n}\n```\n\n## FAQ\n\n__Where to get the Fontastic ID from?__\n\nAfter publishing the font into Fontastic Icon Font Cloud you'll get a similar code:\n`<link href=\"https://file.myfontastic.com/xyZrJ9fqwKbjbLoy8TUiWh/icons.css\" rel=\"stylesheet\">`\n\n`xyZrJ9fqwKbjbLoy8TUiWh` is the code you are looking for.\n","readmeFilename":"README.md","homepage":"https://github.com/considonet/g-fontasticbundler#readme","repository":{"type":"git","url":"git+https://github.com/considonet/g-fontasticbundler.git"},"bugs":{"url":"https://github.com/considonet/g-fontasticbundler/issues"}}