UNPKG

postcss-foft-classes

Version:

A postcss plugin to automatically add classes for the FOFT font loading strategy.

12 lines (8 loc) 282 B
var cleanup = require( "./fontFamilyCleanup" ); function isFontFamilyMatch(haystack, needle) { needle = needle.toLowerCase(); return cleanup( haystack ).filter(function( family ) { return family.toLowerCase() === needle; }).length > 0; } module.exports = isFontFamilyMatch;