
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
spritesmith-css
Advanced tools
基于小图生成对应的 CSS Sprites ,并且支持高清屏的样式处理。
因为只是针对特定的问题点,所以没有提供额外的扩展性。
npm install spritesmith-css
const spritesmith2css = requir("spritesmith-css");
//src 为 1x 的 icon 地址列表
//src2 为 2x 的 icon 地址列表(用于支持 sprites,你必须使用两倍大小的 icon)
spritesmith2css({
src: src1x,
src2: src2x
});
需要合并的图片的地址列表
需要合并的两倍图的地址列表,用于支持高清屏(必须使用两倍大小的图片)
输出的 CssSprites(合并后的大图和 css) 路径,默认为当前目录
输出的名称
MIT
FAQs
Generates the Sprites and the corresponding CSS
The npm package spritesmith-css receives a total of 4 weekly downloads. As such, spritesmith-css popularity was classified as not popular.
We found that spritesmith-css 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.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.