1.0.17 • Published 6 years ago

@limitedeternity/prune v1.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

prune

prune is a CLI utility, used to clean garbage from ./node_modules

Why?

  1. Because it's free.

  2. Fast and async.

  3. Zero dependenices.

  4. node-prune is written using Golang, so it's usually not usable.

Install?

$ npm install --save-dev @limitedeternity/prune

So, how to?

Build-time:

>>> *package.json*:

"scripts": {
  "postinstall": "bash scripts/build.sh"
}

>>> *scripts/build.sh*:

#!/usr/bin/env bash

if [[ $NODE_ENV == production ]]; then 
    <build your stuff>
fi;

prune

CLI (in app directory):

$ prune

node_modules cleanup is running...

Running dedupe...
Dedupe finished. Removing rest of garbage files...
Cleanup finished.

Note: prune action is irreversable. You should either recreate node_modules folder before each build or use npm ci. In Heroku case you should set NODE_MODULES_CACHE var to false.

Who needs that?

Oh, wait, I have an answer for that...

pizdec

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago