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

@ph-itdev/ph-warehouse-toolkit

v0.1.2

Published

Philippine warehousing utilities — peso currency, BIR compliance, inventory management, address lookup, validation, barcode support, and more

Readme

@ph-itdev/ph-warehouse-toolkit

Philippine warehousing utilities for Node.js — currency, BIR compliance, inventory management, address lookup, validation, barcode support, and more.

MIT License TypeScript

Install

npm install @ph-itdev/ph-warehouse-toolkit

Quick Start

import { formatPeso, calculateVAT, generateSKU, isWarehouseOpen } from '@ph-itdev/ph-warehouse-toolkit';

// Philippine Peso formatting
formatPeso(125000);        // ₱125,000.00

// BIR VAT calculations (12%)
calculateVAT(1000);        // 120

// SKU generation
generateSKU({ prefix: 'WH', category: 'EL', sequence: 1 });  // WH-EL-000001

// Warehouse scheduling
isWarehouseOpen(new Date());  // true/false

Modules

💰 Currency

import { formatPeso, parsePeso, formatPesoShort, calculateVAT, addVAT, extractVAT } from '@ph-itdev/ph-warehouse-toolkit/currency';

formatPeso(1234567.89);        // ₱1,234,567.89
formatPesoShort(2500000);       // ₱2.5M
calculateVAT(1000);            // 120
addVAT(1000);                  // 1120
extractVAT(1120);              // { vatableAmount: 1000, vatAmount: 120, grossAmount: 1120 }

📍 Address

import { getRegions, getProvinces, formatAddress } from '@ph-itdev/ph-warehouse-toolkit/address';

getRegions();           // All 17 PH regions
getProvinces('03');      // ['Aurora', 'Bataan', 'Bulacan', 'Pampanga', ...]
formatAddress({ street: '123 Rizal Ave', barangay: '123', city: 'Makati City', province: 'Metro Manila', zipCode: '1200' });
// '123 Rizal Ave, Brgy. 123, Makati City, Metro Manila, 1200'

✅ Validation

import { isValidPHPhone, isValidPHMobile, isValidTIN, isValidPHZipCode } from '@ph-itdev/ph-warehouse-toolkit/validation';

isValidPHPhone('09171234567');    // true (Globe mobile)
isValidPHMobile('09171234567');  // true
isValidTIN('123-456-789-000');   // true
isValidPHZipCode('1200');        // true

📦 Inventory

import { generateSKU, parseSKU, calculateReorderPoint, calculateEOQ, calculateStockValue } from '@ph-itdev/ph-warehouse-toolkit/inventory';

generateSKU({ prefix: 'WH', category: 'EL', sequence: 1 });  // 'WH-EL-000001'
parseSKU('WH-EL-000042');  // { prefix: 'WH', category: 'EL', sequence: 42 }
calculateReorderPoint(50, 7);       // 350
calculateEOQ(1000, 50, 5);          // ~141
calculateStockValue([{ quantity: 100, unitCost: 50 }, { quantity: 50, unitCost: 120 }]);  // 11000

🏷️ Barcode

import { calculateEAN13CheckDigit, validateEAN13, generateCode128Data } from '@ph-itdev/ph-warehouse-toolkit/barcode';

calculateEAN13CheckDigit('400638133393');  // 1
validateEAN13('4006381333931');           // true

📄 Documents

import { generateGRNNumber, generateDRNumber, generateReferenceNumber } from '@ph-itdev/ph-warehouse-toolkit/documents';

generateGRNNumber({ warehouseCode: 'WH01', date: new Date('2026-06-15'), sequence: 1 });
// 'GRN-WH01-20260615-0001'
generateDRNumber({ warehouseCode: 'WH01', date: new Date('2026-06-15'), sequence: 1 });
// 'DR-WH01-20260615-0001'

🎌 Holidays

import { getPhilippineHolidays, isHoliday, isWarehouseOpen } from '@ph-itdev/ph-warehouse-toolkit/holidays';

getPhilippineHolidays(2026);              // Full list of PH holidays
isHoliday(new Date('2026-01-01'));         // true (New Year's Day)
isWarehouseOpen(new Date());              // closed on Sundays + holidays
isWarehouseOpen(new Date(), { closedDays: [] });  // open every day except holidays

Why This Package?

Warehouse management in the Philippines has unique requirements:

  • Philippine Peso (₱) — proper currency formatting with peso sign
  • BIR Compliance — 12% VAT calculations, TIN validation
  • PH Address System — regions, provinces, cities, barangays
  • Local Holidays — regular + special non-working holidays for scheduling
  • SKU & Inventory — generate warehouse SKUs, calculate reorder points
  • Document Numbering — GRN, DR, and PO reference numbers

License

MIT © Nilo Besingga