Socket
Socket
Sign inDemoInstall

lunch-money

Package Overview
Dependencies
9
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lunch-money

API bindings for the Lunch Money personal finance application


Version published
Weekly downloads
5
Maintainers
2
Install size
566 kB
Created
Weekly downloads
 

Readme

Source

Lunch Money JS

Installing

npm install lunch-money

The NPM module also makes types available to TypeScript.

Usage

import LunchMoney, { Asset } from 'lunch-money';

const lunchMoney = new LunchMoney( { token: 'my-api-token' } );

lunchMoney.getAssets().then( ( assets: Asset[] ) => {
	console.log( assets )
} ).catch ( error => {
	console.error( error );
} );

Or, if you are using ESM:

import {LunchMoney} from 'lunch-money'
const lunchMoney = new LunchMoney( { token: 'my-api-token' } );
const assets = await lunchMoney.getAssets();

API

Get all assets (manually managed accounts):

LunchMoney.getAssets() : Promise<Asset>

Get all transactions:

LunchMoney.getTransactions( arguments?: TransactionsEndpointArguments ) : Promise<Transaction[]>

Create transactions

LunchMoney.createTransactions(
	transactions: DraftTransaction[],
	applyRules = false,
	checkForRecurring = false,
	debitAsNegative = false
) : Promise<any>

Examples

There are many open source projects with example code you can use to quickly build your integration:

https://lunchmoney.dev/#awesome-projects

Keywords

FAQs

Last updated on 02 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc