UNPKG

@sequencemedia/css-purge

Version:

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.

10 lines (8 loc) 176 B
export default function formatFont (font) { const v = font.trim() return ( v.includes(' ') && !(v.startsWith('"') || v.endsWith('"')) ? `"${v}"` : v ) }