UNPKG

postcss-merge-longhand

Version:

Merge longhand properties into shorthand with PostCSS.

11 lines (9 loc) • 234 B
import parseTrbl, { fourSideCount } from './parseTrbl.js'; /** * @param {string | string[]} v * @return {string} */ export default (v) => { const value = parseTrbl(v); return value.slice(0, fourSideCount(value)).join(' '); };