rem
remnants
npm i remnants
rem

remnants

Find unused files. Spot these residues, leftovers, relics of an ancient past.

by Matthieu Lemoine

1.3.0 (see all)License:MITTypeScript:Not Found
npm i remnants
Readme

Remnants CircleCI

Find unused files and dependencies. Spot these residues, leftovers, relics of an ancient past.

And 🔥 them. Death to legacy & dead code 💀

Is it for me ?

♻️ Did you recently refactor parts of your awesome project ? ✅

🧓 Is your project so old (more than 2 months old) that you can't even remember why some files & dependencies exist ? ✅

🏭 Is your project so bloated that you're afraid to delete a file ? ✅

Remnants find those relics for you so that you can 🔥 them in peace.

Universal

Can be used with webpack, Metro, Rollup (& more) bundled projects but also good old unbundled Node projects.

Install

yarn global add remnants
or
npm i -g remnants

Usage

In your project directory

remnants --sourceDirectories src

sourceDirectories are the folders where you want Remnants to look for unused files.

Example

Running Remnants on itself 🤯

screenshot

😱 Look at these remnants! 😡

Let 🔥 them all!

...

Done ✅

screenshot

Yeah no unused files or dependencies 🎉

Thanks Remnants !

Remove unused files

remnants --sourceDirectories src --remove

Advance usage

remnants --sourceDirectories src --sourceDirectories lib --projectRoot /Users/remnants/dev/awesome-project --exclude **/*@*x.png

If you're looking for a webpack plugin, give unused-webpack-plugin a try. #shamelessplug

Downloads/wk

19

GitHub Stars

17

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

1

OPEN PRs

9
VersionTagPublished
1.3.0
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial