
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@react-vector-graphics/core
Advanced tools
@react-vector-graphics/coreThis config files for this package should be backwards compatible with @svgr/svgr
const rgvCore = require("@react-vector-graphics/core").default;
const myPlugin = require("./myPlugin");
const config = {
plugins: [
"@react-vector-graphics/plugin-assets",
myPlugin,
"@svgr/plugin-svgo"
],
options: {
"assets/globPattern": "./assets/*.svg"
},
svgoConfig: {
multipass: true
}
};
rvgCore({ config, logger: console });
This is an super set of the svgr configuration.
See @react-vector-graphics/types for definitions.
pluginsThe plugins that will be run in order. These can be module names as strings which will then imported to get the underlying function or functions that will be called directly with the options and other parameters
optionsThe options that the plugins will be initiated with. It is a good idea to namespace the path in the config.options to prevent collisions between independent plugins.
{
"plugins": ["myPlugin", "other-plugin"],
"options": {
"myPlugin/shrink": false,
"otherPlugin/shrink": true
}
}
Plugins are functions that will be called with the following parameters in order.
codeA string representing the svg file that has been read and modified so far
configThe initial configuration object, see config.
stateThe current state of execution, can be modified by plugins to pass information to other plugins further down in the execution chain. The namespacing recommendation as the options applies.
loggerThis is an optional argument that allows the plugin to log output with custom levels.
NOTE: this is not guaranteed to exist and defaults to console.
FAQs
Core library of react-vector-graphics
We found that @react-vector-graphics/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.