Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-sitemap-generator
Advanced tools
npm install --save react-sitemap-generator
or
yarn add react-sitemap-generator
Minimum requirements example
import { generateSitemap } from 'react-sitemap-generator'
import Routes from './Routes'
generateSitemap({
url: 'https://example.org',
routes: [Routes],
})
Full example
import { generateSitemap } from 'react-sitemap-generator'
import Routes from './Routes'
generateSitemap({
url: 'https://example.org',
routes: [Routes],
output: './public',
options: {
'/dashboard': { ignore: true }, // Remote path from sitemap
'/video/:id': {
slugs: { id: ['value1', 'value2'] }, // Creates multiple routes
priority: 1,
changefreq: 'never',
},
},
})
FAQs
Helper to generate a sitemap for react apps
The npm package react-sitemap-generator receives a total of 68 weekly downloads. As such, react-sitemap-generator popularity was classified as not popular.
We found that react-sitemap-generator 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.