ccusage 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,6 +12,12 @@ A CLI tool for analyzing Claude Code usage from local JSONL files.
12
12
 
13
13
  Inspired by [this article](https://note.com/milliondev/n/n1d018da2d769) about tracking Claude Code usage costs.
14
14
 
15
+ ## Motivation
16
+
17
+ Claude Code's Max plan offers unlimited usage - but wouldn't it be interesting to know how much you'd be paying if you were on a pay-per-use plan?
18
+
19
+ This tool helps you understand the value you're getting from your subscription by calculating the equivalent costs of your actual usage. See how much you're saving and enjoy that satisfying feeling of getting great value! 😊
20
+
15
21
  ## Features
16
22
 
17
23
  - 📊 **Daily Report**: View token usage and costs aggregated by date
package/dist/index.js CHANGED
@@ -5754,10 +5754,9 @@ const SessionUsageSchema = object({
5754
5754
  });
5755
5755
  const formatDate = (dateStr) => {
5756
5756
  const date = new Date(dateStr);
5757
- const offsetDate = new Date(date.getTime() + 9 * 60 * 60 * 1e3);
5758
- const year = offsetDate.getUTCFullYear();
5759
- const month = String(offsetDate.getUTCMonth() + 1).padStart(2, "0");
5760
- const day = String(offsetDate.getUTCDate()).padStart(2, "0");
5757
+ const year = date.getFullYear();
5758
+ const month = String(date.getMonth() + 1).padStart(2, "0");
5759
+ const day = String(date.getDate()).padStart(2, "0");
5761
5760
  return `${year}-${month}-${day}`;
5762
5761
  };
5763
5762
  async function loadUsageData(options) {
@@ -6817,7 +6816,7 @@ const consola = createConsola();
6817
6816
  //#endregion
6818
6817
  //#region package.json
6819
6818
  var name = "ccusage";
6820
- var version = "0.1.3";
6819
+ var version = "0.1.4";
6821
6820
  var description = "Usage analysis tool for Claude Code";
6822
6821
 
6823
6822
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccusage",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "author": "ryoppippi <ryoppippi.el@gmail.com> (https://github.com/ryoppippi)",
5
5
  "license": "MIT",
6
6
  "funding": "https://github.com/ryoppippi/ccusage?sponsor=1",