npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@uwmd/excel

v0.3.0

Published

Excel converter for UW Markdown — emit a live multifamily underwriting workbook from a .uw.md file. Derived metrics ship as formulas (not pre-computed values) so Excel and the @uwmd/core calc engine stay in sync by construction.

Downloads

24

Readme

@uwmd/excel

Excel converter for UW Markdown — emit a live multifamily underwriting workbook from a .uw.md file.

uwmd-excel deal.uw.md -o deal.xlsx

The generated workbook has three sheets:

  • Underwriting — header (deal name + address), an Inputs block where each row is a labeled cell with a workbook-scope named range (purchase_price, loan_amount, annual_debt_service, total_units, total_nra_sqft, equity_sponsor), and a Derived Metrics block where each row holds an Excel formula referencing those named ranges.
  • Operating Statement — five income line items, an EGI = SUM(income) sub-total, eleven expense line items, a total_opex = SUM(expenses) sub-total, and an NOI = EGI − total_opex formula. The NOI cell is the workbook's noi named range — every Underwriting-sheet metric that needs NOI references it.
  • Pipeline Log — flat audit table of every pipeline_log block.

Calc-integrity contract

The eight derived metrics ship as formulas, not pre-computed numbers:

| Metric | Formula | | -------------- | -------------------------------------------------- | | Cap Rate | =noi/purchase_price | | LTV | =loan_amount/purchase_price | | DSCR | =noi/annual_debt_service | | Debt Yield | =noi/loan_amount | | Price / Unit | =purchase_price/total_units | | Loan / Unit | =loan_amount/total_units | | Loan / SqFt | =loan_amount/total_nra_sqft | | Cash-on-Cash | =(noi-annual_debt_service)/equity_sponsor |

These mirror MULTIFAMILY_STARTER_PACK in @uwmd/core, so opening the workbook in Excel and running uwmd calc against the same .uw.md produce identical numbers by construction.

Editing any named-input cell updates every dependent metric. Editing any income or expense line item updates EGI, total opex, NOI, and every metric that touches NOI.

Scope (0.1.0)

  • .uw.md → .xlsx only — the reverse direction (workbook → .uw.md) is not yet implemented. The calc-aware web editor at tools/web-editor/ remains the canonical Tier-2 chokepoint for editing a deal file.
  • Multifamily only. Other asset classes will land as separate layout modules alongside src/multifamily.ts.

Library use

import { parseUWFile } from '@uwmd/core';
import { toWorkbook } from '@uwmd/excel';

const parsed = parseUWFile(await readFile('deal.uw.md', 'utf8'));
const wb = await toWorkbook(parsed);
await wb.xlsx.writeFile('deal.xlsx');

toWorkbook returns an ExcelJS.Workbook, so you can serialize to a buffer, add sheets, restyle, or pipe to a stream.

Layout schema

src/multifamily.ts is the single source of truth for the layout — income and expense line items, named inputs, derived-metric formulas. The converter in src/toWorkbook.ts is generic; everything asset-class-specific lives in the layout module.