Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
fela-beautifier
Advanced tools
The beautifier enhancer is a developer tool that automatically formats the rendered CSS markup on every change. It uses cssbeautify to achieve this.
yarn add fela-beautifier
You may alternatively use npm i --save fela-beautifier
.
import { createRenderer } from 'fela'
import beautifier from 'fela-beautifier'
const renderer = createRenderer({
enhancers: [ beautifier() ]
})
Uses the same options as cssbeautify does.
Option | Value | Default | Description |
---|---|---|---|
ident | (string) | (2 spaces) | a string used for the indentation of the declaration |
openbrace | end-of-line , separate-line | end-of-line | placement of open curly brace |
autosemicolon | (boolean) | false | insert semicolon after the last rule |
import { createRenderer } from 'fela'
import beautifier from 'fela-beautifier'
const beautifyEnhancer = beautifier({
openbrace: 'separate-line',
autosemicolon: 'false',
ident: ' ',
})
const renderer = createRenderer({
enhancers: [ beautifyEnhancer ]
})
Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @rofrischmann and all the great contributors.
10.2.1
| Package | Changes |
| --- | --- |
| fela-plugin-rtl | (#673) Added the ability to pass a default direction in order to support full theme-based rtl transformation. |
| react-fela | (#674) Performance optimisations for useFela
. |
| fela-bindings<br>react-fela<br>preact-fela<br>inferno-fela | (#675) Allowing undefined
and null
as valid values for style on FelaRenderer
that used to throw. |
FAQs
Fela enhancer to beautify CSS output
The npm package fela-beautifier receives a total of 1,213 weekly downloads. As such, fela-beautifier popularity was classified as popular.
We found that fela-beautifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.