1.0.5 • Published 3 years ago

ryd v1.0.5

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

ryd is a zero dependency npm package that can be used to prune unnecessary files from ./node_modules, such as markdown files, typescript source files and so on. The intention for this is to be used as either a post-build step in your pipeline or within a docker layer to decrease the size of your final image.

Why?

The node_modules folder is know for being notoriously large, and anything that can be used to lower decrease the size is welcomed.

Why another npm package?

The irony that this is an npm package is not lost on my, however this package was developed to handle a very specific use case that was to prune the node_modules after a multistage build in a node docker image.

How?

Installing

ryd can be installed globally on a system using either yarn or npm:

$ yarn global add ryd
$ npm i -g ryd

or as a normal package in a node project:

$ yarn add ryd
$ npm i ryd

Using

When you call ryd, it assumes that there is a node_modules folder in the current working directory. If you are calling ryd from somewhere else, you can specify the absolute path to the node_modules as an argument:

$ ryd [absolute_path_to_node_modules]

Notes

If you would like a exhaustive list of files/folders that ryd will remove, they can be found in the consts file.

Issues

If any issues occur using this library, please fill our a detailed bug report on GitHub.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago