Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

font-face-extract

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-face-extract

html font-face text extraction

  • 0.5.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 14 Oct 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc