Sweepy is a fast tool to analyze JavaScript/TypeScript projects and find unused exports built with oxc and napi
Warning
Sweepy is experimental and under active development
npm install @sweepy/core --save-devimport { sweepy } from '@sweepy/core';
const result = sweepy('path/to/project-root', ['path/to/entry-1', 'path/to/entry-2']);
console.log(result);
// {
// unusedExports: [
// { file: 'src/utils.ts', name: 'unusedFunction' },
// { file: 'src/constants.ts', name: 'UNUSED_CONSTANT' },
// ],
// }Inspired by Knip
MIT