Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 730 Bytes

File metadata and controls

24 lines (15 loc) · 730 Bytes

loanboard

LoanBoard is a tiny library that generates a simple, responsive HTML dashboard layout for loan management.

Install

npm install @codedev168/loanboard

Usage

const { renderLoanBoard } = require('@codedev168/loanboard'); const fs = require('fs');

const loans = [ { id: 'L-001', borrower: 'Alice', amount: '$10,000', status: 'active', dueDate: '2026-03-01' }, { id: 'L-002', borrower: 'Bob', amount: '$5,000', status: 'late', dueDate: '2026-02-15' } ];

const html = renderLoanBoard(loans, { title: 'My Loans' }); fs.writeFileSync('loanboard.html', html);

This package provides a single function, renderLoanBoard(loans, opts), which returns a full HTML string including a linked styles.css file.

License: MIT