New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alga-css

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alga-css - npm Package Compare versions

Comparing version 1.0.0-wood-2 to 1.0.0-wood-3

src/configs/values.js

6

package.json
{
"name": "alga-css",
"version": "1.0.0-wood-2",
"version": "1.0.0-wood-3",
"description": "Alga CSS is a scope-first CSS toolkit for quickly mix or compose CSS references and share CSS properties between components",
"main": "src/index.js",
"unpkg": "dist/alga-v1.min.css",
"scripts": {

@@ -13,4 +12,3 @@ "test": "jest",

"src",
"alga",
"dist"
"alga"
],

@@ -17,0 +15,0 @@ "repository": {

@@ -14,3 +14,16 @@ module.exports = {

ml: 'marginLeft',
bd: 'border'
bd: 'border',
bg: 'background',
fg: 'color',
ff: 'fontFamily',
fs: 'fontSize',
fw: 'fontWeight',
fv: 'fontVariant',
fw: 'fontWeight',
fe: 'fontStretch',
fi: 'fontStyle',
lh: 'lineHeight',
align: 'textAlign',
justify: 'justifyContent',
items: 'alignItems'
}
const camelDash = require('../helpers/camelDash.js')
const values = require('../configs/values.js')
module.exports = (value) => {
let newValue = value.replaceAll('_', ' ')
if(Object.keys(values).includes(newValue.trim())) {
newValue = values[newValue.trim()]
}
newValue = camelDash(newValue)

@@ -6,0 +10,0 @@ if(newValue.includes('pct')) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc