
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@types/postcss-inline-svg
Advanced tools
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 Anatoly Pitikin.
FAQs
TypeScript definitions for postcss-inline-svg
The npm package @types/postcss-inline-svg receives a total of 614 weekly downloads. As such, @types/postcss-inline-svg popularity was classified as not popular.
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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.