![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
css-profiler
Advanced tools
CSS-Profiler is a PostCSS Cli tool to analysis CSS code quality, find its problems, and generate a report to guide developers write more clean, maintainable CSS code.
目前只支持分析单个 CSS 文件。
# install
$ npm i -g css-profiler
# analysis one or more css files
$ css-profile style.css
# result will display below.
TODO
const cssProfiler = require('css-profiler');
const cssContent = `
input {
display: inline-block;
}
input {
border: 1px solid #eee;
padding: .2rem;
box-sizing: border-box;
width: 100%;
display: block;
}
button {
background: aquamarine;
border: none;
margin-top: .2rem;
display: block;
width: 100%;
box-sizing: border-box;
}`;
let result = cssProfiler(cssContent);
可能造成代码重复的原因有:
scoped
机制的使用不恰当FAQs
A tool that runs static analysis with PostCSS for css files.
The npm package css-profiler receives a total of 3 weekly downloads. As such, css-profiler popularity was classified as not popular.
We found that css-profiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.