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.
pure-index
Advanced tools
Pure Index is a tool for packages. It helps to clean your packages of unused exports with ease.
Pure Index is a tool for packages. It helps to clean your packages of unused exports with ease.
And it’s also speedy ⚡️
We will use the @my/ui-kit
package as an example.
export { Button } from './components/button';
export { Text } from './components/text';
export { ThemeProvider, useTheme, type Theme } from './themes';
...
The number of exports increases over time. All of its exportable code requires support. But is all of it being used?
You can check this manually by just looping through the exports. It’s time-consuming, and there is a chance of error. What if multiple repositories use its code?
Let's automate this process!
You can use any package manager
npm install -D pure-index
Pure Index can be used either through a command line interface with an optional configuration file or its JavaScript API.
check-exports
script in the package.json
of packages that require checking. "scripts": {
+ "check-exports": "pure-index"
}
npm run check-exports
Visit our documentation site for additional information, guides, and API references..
1.1.0
pkgName
to JS Api -> findUnusedExports
FAQs
Pure Index is a tool for packages. It helps to clean your packages of unused exports with ease.
We found that pure-index demonstrated a healthy version release cadence and project activity because the last version was released less than 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.