
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.
检测浏览器与webp的兼容性,在webp可用时添加后缀
npm i oss-webp -S
import ossWebp from "oss-webp";
ossWebp('yourOssImage.jpg',customSuffix).then(r=>{
console.log(r);
})
####原生Js
ossWebp('https://image1.aliyuncs.jpg','/resize,l_100').then(r=>{
console.log(r);
//output: https://image1.aliyuncs.jpg?x-oss-process=image/resize,l_100/format,webp
})
####Angular pipe
import { Pipe, PipeTransform } from "@angular/core";
import ossWebp from "oss-webp";
import {Observable} from "rxjs";
@Pipe({
name: "webp"
})
export class WebpPipe implements PipeTransform {
transform(value: any, args?: any): any {
return new Observable(observer=>{
ossWebp(value,args?args:'').then(r => {
observer.next(r)
});
})
}
}
FAQs
Detect browser compatibility with webp, add suffix when webp is available
We found that oss-webp 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.