Skip to content

JavaScript client for the Lunch Money API, with TypeScript support

Notifications You must be signed in to change notification settings

adamtaylor13/lunch-money-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lunch Money JS

Installing

npm install lunch-money

(waiting NPM approval, not yet working!)

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 );
} );

API

Get all assets

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>

About

JavaScript client for the Lunch Money API, with TypeScript support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%