Skip to content
Liberating disk space from πŸ“ node_modules
TypeScript JavaScript
Branch: master
Clone or download
ImgBotApp and pranshuchittora [ImgBot] Optimize images
*Total -- 8,895.39kb -> 8,796.42kb (1.11%)

/docs/assets/banner_small.png -- 715.30kb -> 654.86kb (8.45%)
/docs/assets/heavy.png -- 66.71kb -> 62.92kb (5.67%)
/docs/assets/logo/autarky_512.png -- 456.36kb -> 448.59kb (1.7%)
/docs/assets/logo/autarky_256.png -- 122.48kb -> 120.57kb (1.56%)
/docs/assets/logo/autarky_128.png -- 37.24kb -> 36.76kb (1.28%)
/docs/assets/logo/autarky_64.png -- 12.01kb -> 11.91kb (0.82%)
/docs/assets/logo/autarky_full.png -- 7,485.30kb -> 7,460.81kb (0.33%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Latest commit 83d559c Dec 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github feat: added workflows + CONTRIBUTING guide + deps (#5) Nov 22, 2019
docs/assets [ImgBot] Optimize images Dec 3, 2019
src
.gitignore tests: fixes flaky tests Nov 21, 2019
.npmignore feat: added FUNDING.yml Nov 22, 2019
.npmrc feat: added github package registry support Nov 22, 2019
.prettierignore feat: added prettier Nov 28, 2019
.prettierrc feat: added prettier Nov 28, 2019
CONTRIBUTING.md feat: added workflows + CONTRIBUTING guide + deps (#5) Nov 22, 2019
LICENSE Create LICENSE Nov 19, 2019
README.md
jest.config.js tests: fixes flaky tests Nov 21, 2019
package.json version: v1.2.4 no bad logs Dec 1, 2019
tsconfig.base.json tests: fixes flaky tests Nov 21, 2019
tsconfig.dev.json feat: seperate ts configs for dev & prod Nov 21, 2019
tsconfig.prod.json feat: seperate ts configs for dev & prod Nov 21, 2019
yarn.lock feat: version 1.2.2 no catchy console Nov 29, 2019

README.md

Autarky

npm downloads NPM Dependabot Maintainability GitHub stars

Liberating disk space from node_modules

Installation

# npm
npm i -g autarky

#yarn
yarn global add autarky

Usage

$> autarky

Why autarky

In today's world storage is comparatively costlier than compute. Majority of devs uses MacBooks and sadly MacBooks have pretty low storage (for base models). Hence filling up storage is quite often and we spend a lot of time picking stuff to be deleted.

Motivation

It's 2019 and I got ran out of storage in my laptop after a thorough analysis I found out that the majority of the storage is occupied by node_modules. As each project have a separate node_modules (duplication in spite of the same version).

I also have a few projects which I touch once in a blue moon, hence they end up eating a lot of space. On the other hand, picking & removing node_modules manually is a tedious process. So I thought why not automate it.

How it works

Autarky works by traversing all the child directories recursively relative to the current working directory (the place where you are executing autarky).

  1. Enter the time in months. Node modules older than the given time will be sowed.
  2. Select the node_modules which you want to delete.
  3. Confirm deletion.
  4. 200 πŸ˜‰

Read CONTRIBUTING Guide

License MIT

Author: Pranshu Chittora

Github Twitter

You can’t perform that action at this time.