Skip to content

joris-gallot/sweepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sweepy

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

Usage

npm install @sweepy/core --save-dev
import { 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' },
//   ],
// }

References

Inspired by Knip

License

MIT

About

Find unused exports in JS/TS projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •