{"_id":"@adamsandwich/gulp-fontmin","_rev":"3-6c2dfc4f23cfbe58ac860b7342b8e2c4","name":"@adamsandwich/gulp-fontmin","dist-tags":{"latest":"0.8.3"},"versions":{"0.8.0":{"name":"@adamsandwich/gulp-fontmin","version":"0.8.0","description":"Gulp plugin for minify TTF font to SVG, EOT, WOFF","license":"MIT","private":false,"repository":{"type":"git","url":"git+https://github.com/adamsandwich/gulp-fontmin.git"},"author":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --timeout 50000"},"keywords":["gulpplugin","fontmin","font","minify","minifier","compress","ttf","woff","eot","svg"],"dependencies":{"chalk":"^1.0.0","fancy-log":"^1.3.3","fontmin":"^0.9.4","object-assign":"^4.0.1","plugin-error":"^1.0.1","pretty-bytes":"^3.0.1","through2-concurrent":"^1.0.0","vinyl":"^2.2.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/adamsandwich/gulp-fontmin/issues"},"homepage":"https://github.com/adamsandwich/gulp-fontmin#readme","main":"index.js","gitHead":"a990fa9946fc98a2b98d6f611860d7f447bcf436","_id":"@adamsandwich/gulp-fontmin@0.8.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vxynzYpSeJRahoPLEXsnL/UPf5SeH+ty8OTVcqHkMP7dVJkZtvLQt7IrNSMzv1ll1Zuj6bCwsxtkcGc82WdHTA==","shasum":"e9936e950368a97a558652eba2547b652f55a2a9","tarball":"https://registry.npmjs.org/@adamsandwich/gulp-fontmin/-/gulp-fontmin-0.8.0.tgz","fileCount":4,"unpackedSize":8615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrGk4CRA9TVsSAnZWagAAVsQP/Ay+BIyRLSOGyRr2E3KM\nR5zxOxPfyaQSF5Bi69QtH/KK6HW8dwYNhZAuJD8U7MfgxVoJlnE+4RHdlWGH\nmnSkCFJqI7oMIE1BTahGwfTbrxRpoV4SmA/MXZxJWSWfZosu76mVFlIqZeJn\nrW9D5Fka6GsFxJLcPzgW0YjXU28dmYov9ayeoh8Mbwu/k8jWiTC/jRzGISq3\n3crqIXnm8p31rWTgRLVdMk6zCozhdDUsD046MaJ+exmlLjEV9cMBR1m3xj1m\nyiPVA4FtI+9MijRScAMatiQfou52UKsz+caC8bhFbZuC2f/ZvOnES3qMqYdG\n+aIPy2SZzegrt2nIxycJsuLKZJxqg88c4pud61E1OcJJKhQg9wWK/Yh6H7T1\nnxNTLD6/zIBqpZiM1sFI9eeTvea7QhjoMc+wkEoaEzP2sJMw3OyZMQmopVFe\niwE00H46k0lPqJ7RNfr+Vd10PDvh1/e1L3toPei31eMEc0df7Z81etA/AaHc\nfz0brQl+k2nmh7sXKHwaDSRKsuDeBklPNqQHZekLw3NkQnbp8aOl/iuFqgHJ\n9uWfV03rfK2BVZrKbZnAN8P/L9Yzba5yqjTgFu7MCiOcYVQDRKFH+DKC0N3s\nZ+to41ryp5Tmdz5FSls3zie/aihGlrmGUoTnk3dbKWLyBJUcP2izNtC0qKqg\n/QbJ\r\n=P6co\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIByBk+07zQj8YjDGi5bXu/ikyjAmxWsUIuPlNdGTYhmZAiEA4e9g7m6RL7T0fdMI+bGf7w83Xa8C8bofzWZCgRGTsaY="}]},"maintainers":[{"name":"adamsandwich","email":"adamsandwich@outlook.com"}],"_npmUser":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fontmin_0.8.0_1571580216251_0.44064170274279424"},"_hasShrinkwrap":false},"0.8.1":{"name":"@adamsandwich/gulp-fontmin","version":"0.8.1","description":"Gulp plugin for minify TTF font to SVG, EOT, WOFF","license":"MIT","private":false,"repository":{"type":"git","url":"git+https://github.com/adamsandwich/gulp-fontmin.git"},"author":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --timeout 50000"},"keywords":["gulpplugin","fontmin","font","minify","minifier","compress","ttf","woff","eot","svg"],"dependencies":{"chalk":"^1.0.0","fancy-log":"^1.3.3","fontmin":"^0.9.4","object-assign":"^4.0.1","plugin-error":"^1.0.1","pretty-bytes":"^3.0.1","through2-concurrent":"^1.0.0","vinyl":"^2.2.0"},"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/adamsandwich/gulp-fontmin/issues"},"homepage":"https://github.com/adamsandwich/gulp-fontmin#readme","main":"index.js","gitHead":"8a743cd44c76032cec06ed36de56673f6e20ad1f","_id":"@adamsandwich/gulp-fontmin@0.8.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-r4W39dtOjujG+j9emnFVEkszHnIJ5v5930ugW1FPP2eojCi+2yjHH29UwRMKz0wzo5uTPTjCa06zCMCpz6uWsQ==","shasum":"0902104fb041f5626d987e42d32238c3bf6ed5e2","tarball":"https://registry.npmjs.org/@adamsandwich/gulp-fontmin/-/gulp-fontmin-0.8.1.tgz","fileCount":4,"unpackedSize":8359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrGr9CRA9TVsSAnZWagAApXAP/0kXvRlmVelsog0yKV0v\nVy1xw+J4cJgV0M+ioKX7hQUpyPIcncsyS87pO7qzcTFokgU7v0kR+Ok7fizu\nboYzX1vBcxIHNGWZopU8PIB0oVxGk/1YjF8fhfcPjaz5ck7HHV+u8eu+iyJe\n6F8VdFuril88E0zfmSHymgwIiGkkdVMsgFXlpZA3V6kk5h1WYI8Bum+Mtw4d\n8hAHI8cWLx+cqXtyNbh7FoL8YevL8A4VCcri5D/iH9X3I11BUcUgaKD1guTb\nDF04qWO3ngNIpNZ43zXqGxSkbkDkjMFLEypWPZMpMjpjdpMGc4zjPvkJgbqf\nExTsGN1R3/CK4y94wscIOz3j1TVlaku0HByutC02ALOhAuUzfmSfpcAnRJp0\nh2/Vpi4HnoMv9O75zMCVJtt6Y4r+8p3bz1rK/VKCKDkuYPMCZZpgMlDLOore\n2HVF4oFf88DCnWEGAvx6yJwfhNIfz15jAcAXh6VC4B2zlnV5lmHsT20LcADd\nTeyc4LBPQQfYFtPX0rd2cqOBcSeE+JJVZPjGEgqZzJkA8SLhcqsaHgVD2eBz\nKvfa5SQsCakbwjQy7d6pKkRi80DbQvnu7pDVJAg6/X1NXeuLqnxhYbsfx/zt\n+gYZBhPvE9N86c1PWhBNDSz0oH7yHYfemBVpxFyu4ES79Oon0CgmgVGl3DL9\n3d67\r\n=cJ6S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBG8zmvRPD4r6qlNhG/AYvs+Rlt0m71aP8gV4tcVgO5gAiEA8iSXOUKZYxRmJincdXnGkAkM2WEuHKtPjv4xtor+qxE="}]},"maintainers":[{"name":"adamsandwich","email":"adamsandwich@outlook.com"}],"_npmUser":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fontmin_0.8.1_1571580668515_0.8024415677358165"},"_hasShrinkwrap":false},"0.8.3":{"name":"@adamsandwich/gulp-fontmin","version":"0.8.3","description":"Gulp plugin for minify TTF font to SVG, EOT, WOFF","license":"MIT","private":false,"repository":{"type":"git","url":"git+https://github.com/adamsandwich/gulp-fontmin.git"},"author":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"scripts":{"test":"mocha --timeout 50000"},"keywords":["gulpplugin","fontmin","font","minify","minifier","compress","ttf","woff","eot","svg"],"dependencies":{"chalk":"^3.0.0","fancy-log":"^1.3.3","fontmin":"^0.9.8","object-assign":"^4.1.1","plugin-error":"^1.0.1","pretty-bytes":"^5.3.0","through2-concurrent":"^2.0.0","vinyl":"^2.2.0"},"devDependencies":{"mocha":"7.1.1"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"bugs":{"url":"https://github.com/adamsandwich/gulp-fontmin/issues"},"homepage":"https://github.com/adamsandwich/gulp-fontmin#readme","main":"index.js","gitHead":"75cef0a38ca5404d1449e011b523091658d95df2","_id":"@adamsandwich/gulp-fontmin@0.8.3","_nodeVersion":"16.15.1","_npmVersion":"8.6.0","dist":{"integrity":"sha512-w5RPtfhTpDsjNhS7NLPzqZG5I4cP6i5xiSy/TRVUND3Ap4s/3cLqTtS3WlERy4HGQNz/hsWJDm4PFeEvzTmiNA==","shasum":"190ec84ed9a1ed8205cac2441993e2e89d6b755b","tarball":"https://registry.npmjs.org/@adamsandwich/gulp-fontmin/-/gulp-fontmin-0.8.3.tgz","fileCount":3,"unpackedSize":7115,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjJptTkCph2dsprf2AyQSPzf0YtagYPhucS0ePqsqESAiAuzteT9uitqzZdIyFMQS80ec7ftPHPd+L7mZTOa+MINQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwFZhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3Tw//dn8g+vBiFR89Zeybo9uKnX6IMLx4Ky4w3tSBm2KQEaHDx2f/\r\nq9SiAwuNQlCYn0ocsi3EPwl65L2tymbQQAdCRXWM7xBJKa201sYiORLYP91l\r\nQQEb7iXLHMkVqAeSxkAhNPf9QBlxTSe1sdpTpZDkRrGTeArMJbh5g529eIEy\r\nVU7OF0czKIUWFwoJXsMMuX2TcoqFjnUmWLfnSlYpQBlxOLSu/swa2Q4XFzzE\r\nLgFCedbdDxPgJrBMd3qbJKoOueFEuDAPKXuGjpiQ08M8JUzge3y0psNBEvdJ\r\n8feKGA0nOwqto35ogCG6YosOF8gN62SAN5Tk6128F/FbygJFhso9tYaznPe9\r\njpIk3e+pD89K0jpY95NwDL1yJn34am6ix0VSYRwVfhVfPkepK3aG99yxuLKw\r\nyaP5KMgI7+R8t6MjZeVfh2fSDZUguPY45ZVrwMiJIsNn/OWdSOqaNPW6icF/\r\njM6/dki3xLFHPRDsbUsvp6iTnqfiEWbKJynJa+Em8kkCQJka6cMucs4yToPe\r\nVhREnAlqhhvqyi45/MOZ0jVPfCdUdYhP/v7gzFGWr0Mfu+vFAnBidneOAhkm\r\nhiA3NjJix/ijx1lQ9BUGqiY/kVa4krdHakUny8qrAsi6fEZYBqL+Kapq/8NL\r\noSn+9Oxl06vvsAATRH4wizo9bgl8MZF7GsQ=\r\n=C7Ai\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"directories":{},"maintainers":[{"name":"adamsandwich","email":"adamsandwich@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fontmin_0.8.3_1656772192776_0.04368555649062755"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-20T14:03:36.018Z","0.8.0":"2019-10-20T14:03:36.387Z","modified":"2022-07-02T14:29:53.061Z","0.8.1":"2019-10-20T14:11:08.653Z","0.8.3":"2022-07-02T14:29:52.979Z"},"maintainers":[{"name":"adamsandwich","email":"adamsandwich@outlook.com"}],"description":"Gulp plugin for minify TTF font to SVG, EOT, WOFF","homepage":"https://github.com/adamsandwich/gulp-fontmin#readme","keywords":["gulpplugin","fontmin","font","minify","minifier","compress","ttf","woff","eot","svg"],"repository":{"type":"git","url":"git+https://github.com/adamsandwich/gulp-fontmin.git"},"author":{"name":"adamsandwich","email":"adamsandwich@outlook.com"},"bugs":{"url":"https://github.com/adamsandwich/gulp-fontmin/issues"},"license":"MIT","readme":"# gulp-fontmin\n\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![Dependencies][dep-image]][dep-url]\n\n[downloads-image]: http://img.shields.io/npm/dm/@adamsandwich/gulp-fontmin.svg\n[npm-url]: https://npmjs.org/package/@adamsandwich/gulp-fontmin\n[npm-image]: http://img.shields.io/npm/v/@adamsandwich/gulp-fontmin.svg\n\n[dep-url]: https://david-dm.org/adamsandwich/gulp-fontmin\n[dep-image]: http://img.shields.io/david/adamsandwich/gulp-fontmin.svg\n\n\n> Minify TTF font to SVG, EOT, WOFF with [fontmin](https://github.com/adamsandwich/fontmin)\n\n## Install\n\n```\n$ npm install --save-dev gulp-fontmin\n```\n\n## Usage\n\n```js\nconst gulp = require('gulp');\nconst fontmin = require('gulp-fontmin');\n\ngulp.task('default', function () {\n    return gulp.src('src/fonts/*.ttf')\n        .pipe(fontmin({\n            text: 'adamsandwich',\n        }))\n        .pipe(gulp.dest('dist/fonts'));\n});\n```\n\n\n## API\n\n### fontmin(options)\n\nOptions:\n\n* `text`: A string corresponding glyphs of ttf\n* `onlyChinese`: {boolean} keep chinese only, exclude Latin, number and symbol. Default = false\n* `fontPath`: {string=} location of font file.\n* `hinting`: {boolean=} keep hint info, defaults true.\n* `quiet`: {boolean=} print how many fonts were effected, defaults false.\n\n\n## Practice\n\n### Get needed text from html\n\n```js\n\nfunction minifyFont(text, cb) {\n    gulp\n        .src('src/font/*.ttf')\n        .pipe(fontmin({\n            text: text\n        }))\n        .pipe(gulp.dest('dest/font'))\n        .on('end', cb);\n}\n\ngulp.task('fonts', function(cb) {\n\n    var buffers = [];\n\n    gulp\n        .src('index.html')\n        .on('data', function(file) {\n            buffers.push(file.contents);\n        })\n        .on('end', function() {\n            var text = Buffer.concat(buffers).toString('utf-8');\n            minifyFont(text, cb);\n        });\n\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}