Skip to content

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

Notifications You must be signed in to change notification settings

MatthieuLemoine/remnants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fa9b3fd Β· Jan 10, 2020

History

8 Commits
Oct 7, 2018
Oct 7, 2018
Oct 7, 2018
Jan 10, 2020
Oct 7, 2018
Oct 7, 2018
Oct 7, 2018
Oct 7, 2018
Oct 7, 2018
Oct 7, 2018
Jan 10, 2020
Oct 7, 2018
Oct 7, 2018
Jan 10, 2020
Oct 26, 2018

Repository files navigation

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

Related

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published