startijenn-rem
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -51,3 +51,3 @@ 'use strict'; | ||
const em = (value, options) => convert(value, 'em', options); | ||
const em = (value, baseline, options) => convert(value, 'em', { baseline, ...options }); | ||
@@ -54,0 +54,0 @@ const px = (value, options) => convert(value, 'px', options); |
{ | ||
"name": "startijenn-rem", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JavaScript function to convert CSS rem units.", | ||
@@ -12,3 +12,2 @@ "keywords": [ | ||
], | ||
"type": "module", | ||
"main": "./index.cjs.js", | ||
@@ -15,0 +14,0 @@ "module": "./index.js", |
@@ -58,3 +58,3 @@ # Startijenn Rem [![Build Status][ci-img]][ci] | ||
font-size: ${(fontSize) => rem(fontSize)}; | ||
padding: ${(fontSize) => em(12, baseline)}; | ||
padding: ${(fontSize) => em(12, fontSize)}; | ||
margin: ${rem("8px 16px")}; | ||
@@ -61,0 +61,0 @@ `; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7487
No