Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Lightweight utility library for Stylus.
Inspired by nib.
Stylus 是一款 CSS 预处理器,与 Sass 和 Less 相比,Stylus 更像是一门编程语言,功能更为强大和灵活。同时,Stylus 完全基于 JavaScript 开发,对 Node.js 工具链极为友好。
而 Brush 是专为 Stylus 编写的工具库,充分利用 Stylus 的变量、Mixin、插值等特性,为现代 CSS 开发提供更舒适的编程体验。
通过 npm 安装:
$ npm install cmui-brush
在你的样式文件中导入 Brush:
@import './node_modules/cmui-brush/brush'
随后即可使用 Brush 提供的各项 API。
如果你使用 gulp-stylus
来处理 Stylus 的编译,则可以在编译过程中以插件的方式来加载 Brush。请参考以下代码:
var gulp = require('gulp')
var stylus = require('gulp-stylus')
var brush = require('cmui-brush')
gulp.task('css', function () {
return gulp.src('./path/to/src/*.styl')
.pipe(stylus({
use: [brush()],
}))
.pipe(gulp.dest('./path/to/dest/'))
})
移动 UI 框架 CMUI v2 采用 Brush 作为全局的样式工具库,因此所有 CMUI v2 的用户都在使用它:
FAQs
Lightweight utility library for Stylus.
We found that cmui-brush 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
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.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.