Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lunch-money

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lunch-money

API bindings for the Lunch Money personal finance application

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38
increased by26.67%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 02 Jun 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc