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.
npm i --save fela-beautifier
Assuming you are using npm as your package manager you can just npm install
.
Otherwise we also provide a UMD. You can easily use it via unpkg. It registers a FelaBeautifier
global.
<!-- Fela (Development): Unminified version including all warnings -->
<script src="https://unpkg.com/fela-beautifier@4.1.0/dist/fela-beautifier.js"></script>
<!-- Fela (Production): Minified version -->
<script src="https://unpkg.com/fela-beautifier@4.1.0/dist/fela-beautifier.min.js"></script>
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.
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.