
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
font-spider
Advanced tools
Font-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.
字蛛是一个智能 WebFont 压缩工具,它能自动分析出页面使用的 WebFont 并进行按需压缩。
フォント・スパイダー(font-spider)は、Webフォントを圧縮するためのスマートなツールです,Webページに使用されるWebフォントを分析し、必要に応じて圧縮することができます。
npm install font-spider -g
@font-face {
font-family: 'source';
src: url('../font/source.eot');
src:
url('../font/source.eot?#font-spider') format('embedded-opentype'),
url('../font/source.woff2') format('woff2'),
url('../font/source.woff') format('woff'),
url('../font/source.ttf') format('truetype'),
url('../font/source.svg') format('svg');
font-weight: normal;
font-style: normal;
}
.home h1, .demo > .test {
font-family: 'source';
}
Attention: the ".ttf" file must be existed which is referred in
srcproperty of@font-face, and our font-spider will automatically generate other formats of font.
font-spider [options] <htmlFile1 htmlFile2 ...>
One or more web-page addresses which support the http form.
Example:
font-spider dest/news.html dest/index.html dest/about.html
Usage: font-spider [options] <htmlFile ...>
Options:
-h, --help output usage information
-V, --version output the version number
--info show only webfont information
--ignore <pattern> ignore the files
--map <remotePath,localPath> mapping the remote path to the local
--no-backup do not back up fonts
--debug enable debug mode
Use the wildcard character to compress the WebFont of several HTML file:
font-spider dest/*.html
--info Show the WebFont that has been used on the website:
font-spider --info http://fontawesome.io
--ignore Ignore the file:
font-spider --ignore "icon\\.css$" dest/*.html
--map This parameter will map the WebFont of online page to local and then compress it (the local path must be an absolute path):
font-spider --map "http://font-spider.org/font,/Website/font" http://font-spider.org/index.html
See:API.md
utf-8 are supported.FAQs
Smart webfont compression and format conversion tool
We found that font-spider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.