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) 134 B
export default function getSizeInKB (data) { const { byteLength } = Buffer.from(data) return ( byteLength / 1000 ) }