Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jokeyrhyme/unused-static-assets.js

compare logs to local folder and identify unused assets
https://github.com/jokeyrhyme/unused-static-assets.js

Last synced: 21 days ago
JSON representation

compare logs to local folder and identify unused assets

Awesome Lists containing this project

README

        

# unused-static-assets.js

compare logs to local folder and identify unused assets

## What is this?

I just whipped this up to analyse AWS Cloudfront access logs and compare them
to a local directory of assets. The idea was to establish which files were no
longer in use, so that I could remove them.

## Usage

```shell
cd local/asset/folder/to/audit
node path/to/this/project path/to/access/logs
```