Socket
Socket
Sign inDemoInstall

font-face-extract

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    font-face-extract

html font-face text extraction


Version published
Maintainers
1
Created

Readme

Source

font-face-extract

npm version

用于提取html文件中有使用自定义字体 (WebFont) 的文字及对应字体的文件路径。 可以结合字体提取工具 (例如:fontmin) 来压缩精简自定义字体。

Used to extract the font-face text in the html file.

API

npm install font-face-extract
const FontFaceExtract = require('font-face-extract');
let extract = new FontFaceExtract({
	src:['xxx/demo1.html','xxx/demo2.html']
});

extract.then(result => {
	console.log(JSON.stringify(result,null,2))
}).catch(error => {
	console.log('错误',error);
});

相关

https://github.com/sbfkcel/fws

fws是一个前端脚手架工具,其中字体精简部分就有使用到font-face-extract

License

ISC

Keywords

FAQs

Last updated on 09 Nov 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc