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 🙏

© 2026 – Pkg Stats / Ryan Hefner

finance-manager_lvn

v1.1.21

Published

Bibliothèque en JavaScript (Node.js) pour gérer ses finances personelles

Readme

Finance Manager

English will follow.

Gestionnaire de Finances

Gestionnaire de Finances est une bibliothèque JavaScript (Node.js) pour gérer ses finances personnelles. Elle permet de créer et gérer des comptes, des catégories et des transactions, et fournit des fonctionnalités pour exporter des données vers des fichiers JSON et calculer les soldes et les dépenses.

Installation

Pour installer le package, exécutez la commande suivante :

npm install finance-manager_lvn

Utilisation

Voici quelques exemples d'utilisation de la bibliothèque Gestionnaire de Finances :

Importation de la Bibliothèque

import { Compte, Categorie, Transaction, createCompte, createTransaction, createCategorie, exportComptesToJson, exportTransactionsToJson, exportCategoriesToJson, soldeCompteByDate, spendingByCategorie } from 'finance-manager_lvn';

Création de Comptes à partir d'un Fichier CSV

const comptes = await createCompte('path/to/comptes.csv');
console.log(comptes);

Création de Transactions à partir d'un Fichier CSV

const transactions = await createTransaction('path/to/transactions.csv');
console.log(transactions);

Création de Catégories à partir d'un Fichier CSV

const categories = await createCategorie('path/to/categories.csv');
console.log(categories);

Exportation des Données vers des Fichiers JSON

exportComptesToJson(comptes, 'comptes.json');
exportTransactionsToJson(transactions, 'transactions.json');
exportCategoriesToJson(categories, 'categories.json');

Calcul du Solde d'un Compte par Date

const balance = soldeCompteByDate(transactions, comptes[0], '2025-12-31');
console.log(`Solde : ${balance}`);

Calcul des Dépenses par Catégorie sur une Période

const spending = spendingByCategorie(transactions, 'food', '2025-01-01', '2025-12-31');
console.log(`Dépenses totales pour la nourriture : ${spending}`);

Points Importants

  • La bibliothèque utilise le package csv-parser pour lire les fichiers CSV.
  • Assurez-vous que les fichiers CSV sont correctement formatés avec les en-têtes appropriés.
  • La fonction soldeCompteByDate calcule le solde d'un compte jusqu'à une date spécifique en fonction des transactions.
  • La fonction spendingByCategorie calcule les dépenses totales pour une catégorie spécifique sur une période donnée.
  • Si un fichier d'entrée est manquant ou mal formaté, la bibliothèque génère une erreur. Assurez-vous que vos fichiers CSV contiennent les en-têtes corrects.

Licence

Ce projet n'est pas open-source et ne doit pas être distribué sans permission.


Finance Manager

Finance Manager is a JavaScript (Node.js) library for managing personal finances. It allows you to create and manage accounts, categories, and transactions, and provides functionalities to export data to JSON files and calculate balances and spending.

Installation

To install the package, run the following command:

npm install finance-manager_lvn

Usage

Here are some examples of how to use the Finance Manager library:

Importing the Library

import { Compte, Categorie, Transaction, createCompte, createTransaction, createCategorie, exportComptesToJson, exportTransactionsToJson, exportCategoriesToJson, soldeCompteByDate, spendingByCategorie } from 'finance-manager_lvn';

Creating Accounts from a CSV File

const comptes = await createCompte('path/to/comptes.csv');
console.log(comptes);

Creating Transactions from a CSV File

const transactions = await createTransaction('path/to/transactions.csv');
console.log(transactions);

Creating Categories from a CSV File

const categories = await createCategorie('path/to/categories.csv');
console.log(categories);

Exporting Data to JSON Files

exportComptesToJson(comptes, 'comptes.json');
exportTransactionsToJson(transactions, 'transactions.json');
exportCategoriesToJson(categories, 'categories.json');

Calculating Account Balance by Date

const balance = soldeCompteByDate(transactions, comptes[0], '2025-12-31');
console.log(`Balance: ${balance}`);

Calculating Spending by Category within a Date Range

const spending = spendingByCategorie(transactions, 'food', '2025-01-01', '2025-12-31');
console.log(`Total spending on food: ${spending}`);

Important Points

  • The library uses the csv-parser package to read CSV files.
  • Ensure that the CSV files are properly formatted with the correct headers.
  • The soldeCompteByDate function calculates the balance of an account up to a specific date based on transactions.
  • The spendingByCategorie function calculates the total spending for a specific category within a date range.
  • If an input file is missing or incorrectly formatted, the library throws an error. Ensure your CSV files contain the correct headers.

License

This project is not open-source and should not be distributed without permission.