0.5.7 • Published 6 years ago

font-face-extract v0.5.7

Weekly downloads
13
License
ISC
Repository
github
Last release
6 years ago

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

0.5.7

6 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago