
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
@types/postcss-inline-svg
Advanced tools
TypeScript definitions for postcss-inline-svg
npm install --save @types/postcss-inline-svg
This package contains type definitions for postcss-inline-svg (https://github.com/TrySound/postcss-inline-svg).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-inline-svg.
import { PluginCreator } from "postcss";
declare namespace postcssInlineSvg {
interface Options {
/**
* Array of paths to resolve URL. Paths are tried in order, until an existing file is found.
* If omitted, path will be relative to source file if it was specified
*/
paths?: readonly string[];
/**
* Removes all `fill` attributes before applying specified. Passed `RegExp` filters files by ID
* @default false
*/
readonly removeFill?: RegExp | boolean;
/**
* Removes all `stroke` attributes before applying specified. Passed `RegExp` filters files by ID
* @default false
*/
removeStroke?: RegExp | boolean;
/**
* Processes SVG after applying parameters
*/
encode?: (svg: string) => string;
/**
* Transforms SVG after `encode` function and generates URL
*/
transform?: (svg: string, path: string) => string;
/**
* Adds `xmlns` attribute to SVG if not present
* @default true
*/
xmlns?: boolean;
}
}
declare const postcssInlineSvg: PluginCreator<postcssInlineSvg.Options>;
export = postcssInlineSvg;
These definitions were written by .
FAQs
TypeScript definitions for postcss-inline-svg
We found that @types/postcss-inline-svg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.