programmable-banking-faker
v1.0.3
Published
A faker package for programmable banking
Downloads
192
Maintainers
Readme
programmable-banking-faker
A package for generating fake banking data for testing purposes.
📦 Install
npm install --save-dev programmable-banking-faker
🪄 Usage
// ESM
import { Investec } from 'programmable-banking-faker';
// CJS
const { Investec } = require('programmable-banking-faker');
// Generate a random transaction description
const description = Investec.description();
// Either 'credit' or 'debit'
const type = Investec.type();
// Returns one of the other banks
const bank = new Investec.bank();
// Generate a random transaction
const transaction = Investec.transaction();
// Generate a random account
const account = Investec.account();
// Generate a random beneficiary
const beneficiary = Investec.beneficiary();