parse-unit

parses number and unit, '20px' into [20, 'px']

Browse on unpkg