From 9adfbbfa8316be30c43d2316e52a1e064bded461 Mon Sep 17 00:00:00 2001 From: Peter Damoc Date: Mon, 15 Aug 2022 19:13:05 +0300 Subject: [PATCH] Update Readme --- README.md | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 62e3b8c..e9549c2 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,37 @@ # elmjs-inspect -## Running it +## Build it ```sh -npm build -node dist/index.js analyze +npm i +npm run build +npm link +``` + +## Run it + +Size contribution of each function + +``` +elmjs-size elm.js +``` + +Size contribution by modules + +``` +elmjs-size --summary=module elm.js +``` + +Size contribution by package + +``` +elmjs-size --summary=package elm.js +``` + +Size contribution of only the project's modules + +``` +elmjs-size --summary=project elm.js ``` ## TODO