npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

expensify-cli

v1.1.0

Published

A CLI tool to manage transactions and generate reports regarding your expenses

Downloads

46

Readme

Expensify CLI

The Expensify CLI is a powerful command-line tool that helps you manage your expenses, create reports, and keep track of your finances. With this tool, you can add, edit, delete transactions, and generate reports on the percentage distribution of expenses by category.


Contents

  1. Installation
  2. Usage
  3. Examples
  4. Error Handling
  5. License

Installation

Make sure Node.js is installed on your system.

  1. Install the package globally:

    npm install -g expensify-cli
    pnpm add -g expensify-cli
  2. After installation, you can use the exp command.


Usage

Help Command

To view help for all available commands:

exp --help

1. Add a Transaction

Add a new transaction:

exp add <category> <description> <amount> <date>

Parameters:

  • <category>: The category of the expense.
  • <description>: A description of the transaction.
  • <amount>: The amount spent (accepts decimals with either , or .).
  • [date]: The date of the transaction in the format DD.MM.YYYY (optional, defaults to today).

Example:

exp add "Household & Living" "Monthly household budget" 800.00 18.12.2024

2. View Transactions

List all stored transactions:

exp list

Optional Filters:

  • --category or -c: Filter transactions by category.
  • --date or -d: Filter transactions by a specific date.
  • --show-ids or -id: Display the IDs of the transactions.
  • --descending or -desc: Change the sort order (descending by date).

Example:

exp list --category "Leisure"
exp list --date 18.12.2024
exp list --show-ids
exp list --descending

3. Edit a Transaction

Edit a transaction by its ID:

exp edit <id> [options]

Options:

  • -d, --date <date>: Change the date.
  • -c, --category <category>: Change the category.
  • -a, --amount <amount>: Change the amount.
  • -desc, --description <description>: Change the description.

Example:

exp edit 1 --date 19.12.2024 --amount 750.00

4. Delete a Transaction

Delete a transaction by its ID:

exp remove <id>

Example:

exp remove 2

5. Generate a Report

Generate a report showing the percentage distribution of transactions by category:

exp report

Optional Filters:

  • --month or -m: Generate a report for a specific month (format YYYY-MM).

Example:

exp report
exp report --month 2024-12

6. View All Categories

List all available categories:

exp categories

Example:

exp categories

7. Set Configuration Options

Update CLI settings, such as the active currency or language:

Set Active Currency:

exp config --set-currency <currency>
  • <currency>: Specify the currency code (e.g., USD, EUR).

Set Language:

exp config --set-language <language>
  • <language>: Specify the language code (e.g., en_001, de).

View Configuration:

exp config --view

Example:

exp config --set-currency USD
exp config --set-language en_001
exp config --view

Examples

  1. Add Transactions:

    exp add "Leisure" "Theatre visit" 35.90 15.12.2024
    exp add "Household & Living" "Monthly household budget" 800.00 18.12.2024
  2. List All Transactions:

    exp list
  3. Edit a Transaction:

    exp edit 1 --amount 750.00
  4. Delete a Transaction:

    exp remove 2
  5. Generate a Report:

    exp report --month 2024-12
  6. View All Categories:

    exp categories
  7. Update Configuration:

    exp config --set-currency EUR
    exp config --set-language de
    exp config --view

Error Handling

  1. Invalid Date Format:

    • Dates must be entered in the format DD.MM.YYYY for transactions or YYYY-MM for reports.
  2. Invalid Amount:

    • Amounts must be valid numbers (e.g., 800.00 or 800,00).
  3. ID Not Found:

    • Ensure the transaction ID is correct when using edit or remove.
  4. Unsupported Language or Currency:

    • Check the supported language or currency codes when updating the configuration.

License

This project is licensed under the MIT License. For more details, refer to the LICENSE file.


Enjoy managing your expenses! 😊
If you have any questions or issues, please create an issue on GitHub.