{"_id":"@billxia/font-spider","_rev":"2-0d901a367aaf392cccc6eca9edc3e539","name":"@billxia/font-spider","dist-tags":{"latest":"1.3.7"},"versions":{"1.3.6":{"name":"@billxia/font-spider","description":"Smart webfont compression and format conversion tool, forked from aui","version":"1.3.6","homepage":"https://github.com/aui/font-spider","author":{"name":"Wilson Xia","email":"2833145060@qq.com"},"repository":{"type":"git","url":"git://github.com/bill-xia/font-spider.git"},"bugs":{"url":"https://github.com/bill-xia/font-spider/issues"},"bin":{"font-spider":"bin/font-spider"},"main":"./src/index.js","engines":{"node":">= 4.0.0"},"scripts":{"release":"gulp --gulpfile test/gulpfile.js","demo":"npm run release && node bin/font-spider --no-backup --debug test/demo-release/**/*.html","test":"mocha test/index.js && npm run demo"},"dependencies":{"browser-x":"^0.0.1-beta7","colors":"^1.1.2","commander":"^2.9.0","css-font-parser":"^0.2.3","fontmin":"^0.9.8","glob":"^7.0.3","gulp":"^4.0.2","gulp-rename":"^1.4.0"},"devDependencies":{"cssom":"0.3.1","mocha":"^6.2.0"},"license":"MIT","keywords":["font","fontforge","font-face","woff","ttf","svg","eot","truetype","css","webfont","font subsetter","font converter"],"gitHead":"c1547c4da8c38e0625145be5c4826b444ce28997","_id":"@billxia/font-spider@1.3.6","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"integrity":"sha512-zwLAYS3Mw6/et9S21rvfskuUo2b+uzN8SipYrvDnGqVBECM/1Y+tV5wRHgvfZ4btQCjZO5HxoEu/astHMLAswA==","shasum":"1cc2390f0bc6b0b455e1fbff43ca06a74b19f327","tarball":"https://registry.npmjs.org/@billxia/font-spider/-/font-spider-1.3.6.tgz","fileCount":19,"unpackedSize":78588,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/83oCRA9TVsSAnZWagAAJ64P/jQ222cbkwyk10NH6XN+\nzZrhF8YfBhz925xtlafbaA1vK5Zso0NAGnVF1eoHET+aOI/3RnPn1wO7l+ZG\nZggtWg17+DQe7JHxQVY5DIu3Iva63rA6tIX+aGHJS+B4YX/zOj5l6TK19UBl\nmCGGbMQsX+rnsTva+VCDPO/k6vF2rSyeEX/zqx/tlo+mMJmKe9GGUNjjiOY8\nHbgftGYCyianpntNwUKFiRQ6Enzq9bzzZBvoKCVUHhVB2sUFOrehwS3GCLgY\n0wy+KngWWyHEQfjVaThQZVD5K7pYlvvjoeOrnvm6gtKntWM4TcMLN2k//owt\nZfo7oQmxWabzp4Z9NjvY4LX+C5GZonAtt3MveDIICJYIzMaoNZnNMjoPI3tg\nDCUGyWfYdach38V2rSD2MH/PTthmWNnBUUvp25sitEpXQis3qVjr7PBhGTNr\n/aeHmm/31+2uU0Cs0Ihvy0ka0M5VGk3oyZHQyK7ISOFsy5EaCOA1wA96NK/v\n8axH/9OEX3oNLYgmFsxkQ1qPcvyVS/1a7rSclDu9+GJ5my1x/PKii7gy4WLl\nywjlUmSgZw5zQtAz0Feax0Gz1mQec6gMIbXFOw1L4zI1X281v5s4MGAuSL6R\n9l7zg1yv0JPMWCriYnxJQF49WIKWHKRuEX76uwXWf4/Yl5Ygvn6A1AisACIa\nsxQ4\r\n=9I6T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH50fa5XUyLwa8+PTvCsrctaECO400PmWYDeCnbLEZ9tAiBYHXb9jLIF4UaKNuVcFFvj6J58NJz6CwQjjOZsnEWjTw=="}]},"_npmUser":{"name":"billxia","email":"2833145060@qq.com"},"directories":{},"maintainers":[{"name":"billxia","email":"2833145060@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/font-spider_1.3.6_1644154344514_0.9004631689294071"},"_hasShrinkwrap":false},"1.3.7":{"name":"@billxia/font-spider","description":"Smart webfont compression and format conversion tool, forked from aui","version":"1.3.7","homepage":"https://github.com/aui/font-spider","author":{"name":"Wilson Xia","email":"2833145060@qq.com"},"repository":{"type":"git","url":"git://github.com/bill-xia/font-spider.git"},"bugs":{"url":"https://github.com/bill-xia/font-spider/issues"},"bin":{"font-spider":"bin/font-spider"},"main":"./src/index.js","engines":{"node":">= 4.0.0"},"scripts":{"release":"gulp --gulpfile test/gulpfile.js","demo":"npm run release && node bin/font-spider --no-backup --debug test/demo-release/**/*.html","test":"mocha test/index.js && npm run demo"},"dependencies":{"browser-x":"^0.0.1-beta7","colors":"^1.1.2","commander":"^2.9.0","css-font-parser":"^0.2.3","fontmin":"^0.9.8","glob":"^7.0.3","gulp":"^4.0.2","gulp-rename":"^1.4.0"},"devDependencies":{"cssom":"0.3.1","mocha":"^6.2.0"},"license":"MIT","keywords":["font","fontforge","font-face","woff","ttf","svg","eot","truetype","css","webfont","font subsetter","font converter"],"gitHead":"c1547c4da8c38e0625145be5c4826b444ce28997","_id":"@billxia/font-spider@1.3.7","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"integrity":"sha512-8zyu7DHoAzspDNvg9kTD0F8IDzarck8MGHWFiuB+oY8yfTO9NgkI0YiTHp1Pm9/Lydu2jX3C3Nju1FJ5hyHZ7g==","shasum":"109461c588a525be5fa02e6f5955adfdbe45ede8","tarball":"https://registry.npmjs.org/@billxia/font-spider/-/font-spider-1.3.7.tgz","fileCount":20,"unpackedSize":80769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh//NSCRA9TVsSAnZWagAAwrwQAJdmm57/C0n2vQS9mb6T\n5r1zvzWJ9Lak9ayBgAYqBcEAZ8fDHaIsbxfqbbDxO7OVjeG8/oQfWeE6rstD\nCbu+lwoBkdXmTaxwHhT+sVEIh+CJPR3SOmSsSyZWaCtPodFWhewE9va7347f\nfjnMPINj4k5d6xFKInaoO6cAMocR4ibGHybYjDIcS99DfhlrV/DBwJKnwSMW\nLujIFm8H3NyFOnsMxKuP4T1WvJWmmKcmpbMsk2cSH7V0YWHFfmmuSGlQNmdW\nNiPCFeUPWEKUU4FPch3rp8jyPkbQKr8wepBbb1uDNP2nQzEU777TSjkZLMKz\nleHexzVvae6BRAq8dlh4r1jx0qj7hzOP4R0wJmYz7etThaOBVRlNoaA2BUyu\nupda1u2pXdeydE86a6uEA0jmM/GE2qG5DbY+JW1n6WBXY7mHJxaGrvMZGo0L\nbEiAcrwVeINb1gCXRQboOnP74rnQlSktN5gc6P3qLNQbcpM7YEvdKOZIGpFx\nEFQS9/yn5vpNHHijsK38q4M56VtTrzOifmdrJEJwdw2hkVebYWLDEhxw/OVB\n0YRa8xAGUpgnauFm6zi/ZBW2l4F1GnXs9Ijp3dT7tuxHu9aEKFgM1P1lna5t\n0gqz0UhyAC2Kb6iGJXr4SNINEeHKG8egYTogEM7DCkg0Fgqy3C3hjW+6nXv5\n6tM9\r\n=ITm5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5MqCZLBLqjExO+AMCCtya99cHbcsL3ANf+NR1ImFS6gIgJwUq7EKYlwG1BeUkqAhuKvqs408X3CjY9bExkoygiIk="}]},"_npmUser":{"name":"billxia","email":"2833145060@qq.com"},"directories":{},"maintainers":[{"name":"billxia","email":"2833145060@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/font-spider_1.3.7_1644163922130_0.8490543874959307"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-06T13:32:24.457Z","1.3.6":"2022-02-06T13:32:24.726Z","modified":"2022-04-04T18:50:41.203Z","1.3.7":"2022-02-06T16:12:02.315Z"},"maintainers":[{"name":"billxia","email":"2833145060@qq.com"}],"description":"Smart webfont compression and format conversion tool, forked from aui","homepage":"https://github.com/aui/font-spider","keywords":["font","fontforge","font-face","woff","ttf","svg","eot","truetype","css","webfont","font subsetter","font converter"],"repository":{"type":"git","url":"git://github.com/bill-xia/font-spider.git"},"author":{"name":"Wilson Xia","email":"2833145060@qq.com"},"bugs":{"url":"https://github.com/bill-xia/font-spider/issues"},"license":"MIT","readme":"# font-spider\n\nTHIS DEPO IS FORKED FROM aui/font-spider.\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-ci-image]][travis-ci-url]\n\n[[简体中文]](./README-ZH-CN.md) | [[English]](./README.md) | [[日本語]](./README-JA.md)\n\nFont-spider is a compress tool for WebFont which can analyze your web-page intelligently to find the fonts out which have been used and then compress them.\n\n字蛛是一个智能 WebFont 压缩工具，它能自动分析出页面使用的 WebFont 并进行按需压缩。\n\nフォント・スパイダー（font-spider）は、Webフォントを圧縮するためのスマートなツールです，Webページに使用されるWebフォントを分析し、必要に応じて圧縮することができます。\n\n------------------\n\n<img alt=\"font-spider\" width=\"670\" src=\"https://cloud.githubusercontent.com/assets/1791748/15415184/8bc574ac-1e73-11e6-92b9-515281620e9d.png\">\n\n## Feature\n\n1. Font subsetter: Our tool is based on HTML and CSS analysis and completely running in local so that.\n2. Font converter: Support woff2, woff, eot, svg font format generation.\n\n## Install\n\n``` shell\nnpm install font-spider -g\n```\n\n## Use\n\n### step one: code CSS\n\n``` css\n@font-face {\n  font-family: 'source';\n  src: url('../font/source.eot');\n  src:\n    url('../font/source.eot?#font-spider') format('embedded-opentype'),\n    url('../font/source.woff2') format('woff2'),\n    url('../font/source.woff') format('woff'),\n    url('../font/source.ttf') format('truetype'),\n    url('../font/source.svg') format('svg');\n  font-weight: normal;\n  font-style: normal;\n}\n\n.home h1, .demo > .test {\n    font-family: 'source';\n}\n```\n\n> Attention: the \".ttf\" file must be existed which is referred in `src` property of `@font-face`, and our font-spider will automatically generate other formats of font.\n\n### step two: compress WebFont by using font-spider\n\n``` shell\nfont-spider [options] <htmlFile1 htmlFile2 ...>\n```\n\n#### htmlFiles\n\nOne or more web-page addresses which support the http form.\n\nExample:\n\n``` shell\nfont-spider dest/news.html dest/index.html dest/about.html\n```\n\n#### options\n\n```\nUsage: font-spider [options] <htmlFile ...>\n\nOptions:\n\n  -h, --help                    output usage information\n  -V, --version                 output the version number\n  --info                        show only webfont information\n  --ignore <pattern>            ignore the files\n  --map <remotePath,localPath>  mapping the remote path to the local\n  --no-backup                   do not back up fonts\n  --debug                       enable debug mode\n```\n\n#### sample of parameters usage\n\nUse the wildcard character to compress the WebFont of several HTML file:\n\n``` shell\nfont-spider dest/*.html\n```\n\n`--info` Show the WebFont that has been used on the website:\n\n``` shell\nfont-spider --info http://fontawesome.io\n```\n\n`--ignore` Ignore the file:\n\n``` shell\nfont-spider --ignore \"icon\\\\.css$\" dest/*.html\n```\n\n`--map` This parameter will map the WebFont of online page to local and then compress it (the local path must be an absolute path):\n\n``` shell\nfont-spider --map \"http://font-spider.org/font,/Website/font\" http://font-spider.org/index.html\n```\n\n## Build plugins\n\n- [grunt-font-spider](https://github.com/aui/grunt-font-spider)\n- [gulp-font-spider](https://github.com/aui/gulp-font-spider)\n\n## API\n\nSee:[API.md](./API.md)\n\n## Limitations\n\n- Only the constant texts and styles are supported, but not the dynamic elements and styles which is inserted by javascript.\n- The \".otf\" format fonts should be transfered to \".ttf\" format firstly, so that we can start our compressing work.\n- Only the HTML and CSS files which is encoded by `utf-8` are supported.\n\n[npm-image]: https://img.shields.io/npm/v/font-spider.svg\n[npm-url]: https://npmjs.org/package/font-spider\n[node-version-image]: https://img.shields.io/node/v/font-spider.svg\n[node-version-url]: http://nodejs.org/download/\n[downloads-image]: https://img.shields.io/npm/dm/font-spider.svg\n[downloads-url]: https://npmjs.org/package/font-spider\n[travis-ci-image]: https://travis-ci.org/aui/font-spider.svg?branch=master\n[travis-ci-url]: https://travis-ci.org/aui/font-spider\n\n-----------------\n\n[\\[Link\\] 让 font-spider 支持 js 动态内容](https://github.com/allanguys/font-spider-plus)\n\n[\\[AD\\] 前端招聘：在海边写代码](https://juejin.im/post/5a2651d06fb9a0451c3a40ad)\n","readmeFilename":"README.md"}