Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
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.0.7
FAQs
Pure Index is a tool for packages. It helps to clean your packages of unused exports with ease.
The npm package pure-index receives a total of 7 weekly downloads. As such, pure-index popularity was classified as not popular.
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.