<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MANOJ CHOUDHARY</title>
    <description>The latest articles on DEV Community by MANOJ CHOUDHARY (@manojchoudhary-dev).</description>
    <link>https://dev.to/manojchoudhary-dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283968%2F8e90dccf-8f53-4a2a-8494-137d40307805.jpg</url>
      <title>DEV Community: MANOJ CHOUDHARY</title>
      <link>https://dev.to/manojchoudhary-dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/manojchoudhary-dev"/>
    <language>en</language>
    <item>
      <title>I built 4 tiny npm packages for Indian developers</title>
      <dc:creator>MANOJ CHOUDHARY</dc:creator>
      <pubDate>Sat, 05 Dec 2026 05:13:24 +0000</pubDate>
      <link>https://dev.to/manojchoudhary-dev/i-built-4-tiny-npm-packages-for-indian-developers-1lhd</link>
      <guid>https://dev.to/manojchoudhary-dev/i-built-4-tiny-npm-packages-for-indian-developers-1lhd</guid>
      <description>&lt;p&gt;Every Indian developer rewrites the same utilities in every project: format rupees the Indian way (₹12,34,567, not ₹1,234,567), validate a PAN or GSTIN, build a UPI payment link, check if today is a gazetted holiday. I got tired of copying these snippets around, so I turned them into four small, zero-dependency npm packages. They're all MIT licensed and live today.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;india-format — Indian number and rupee formatting
Indian digit grouping (lakh/crore), ₹ formatting, compact forms, and amount-in-words in both English and Hindi — the thing every invoice needs.
import { formatINR, amountToWords, compactIndian } from 'india-format';&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;formatINR(1234567);            // ₹12,34,567.00&lt;br&gt;
amountToWords(123456);         // One Lakh Twenty Three Thousand Four Hundred Fifty Six&lt;br&gt;
amountToWords(123456, 'hi');   // एक लाख तेईस हज़ार चार सौ छप्पन&lt;br&gt;
compactIndian(34000000);       // 3.4 Crore&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;india-validate — PAN, GSTIN, IFSC, Aadhaar and more
Most validators on npm only check the shape of an ID with a regex. This one checks the actual checksums: GSTIN uses the real mod-36 check character (and validates the embedded PAN and state code), and Aadhaar uses the Verhoeff algorithm, so transposed digits get caught.
import { isValidGSTIN, isValidPAN, isValidAadhaar } from 'india-validate';&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;isValidGSTIN('27AAPFU0939F1ZV');  // true&lt;br&gt;
isValidGSTIN('27AAPFU0939F1Z5');  // false — checksum doesn't match&lt;br&gt;
isValidPAN('ABCPE1234F');         // true&lt;br&gt;
isValidAadhaar('234567890124');   // true (format + checksum only)&lt;br&gt;
It also covers IFSC, PIN codes, Indian mobile numbers (with normalisation), and UPI VPAs. Note: Aadhaar validation is format/checksum only — it cannot confirm an Aadhaar number actually exists, and the README says so clearly.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;upi-qr-kit — UPI payment links for QR codes
Builds and parses NPCI-spec upi://pay URIs — the links behind every UPI QR code — with proper parameter order and validation, so a malformed VPA or amount fails loudly instead of producing a QR that silently doesn't work.
import { buildUpiUri, parseUpiUri } from 'upi-qr-kit';&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;buildUpiUri({ vpa: 'yourname@okhdfcbank', name: 'Your Shop', amount: 499, note: 'Order 42' });&lt;br&gt;
// upi://pay?pa=yourname%40okhdfcbank&amp;amp;pn=Your%20Shop&amp;amp;tn=Order%2042&amp;amp;am=499&amp;amp;cu=INR&lt;br&gt;
Pair it with any QR renderer (the README shows the qrcode package) and you have a working payment QR in a few lines.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;india-holidays — gazetted holidays with Hindi names
The Central Government gazetted holiday list for 2026 (17 holidays, sourced from DoPT) with Hindi names, plus helpers to ask the questions apps actually ask:
import { isHoliday, nextHoliday } from 'india-holidays';&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;isHoliday('2026-11-08');        // true (Diwali)&lt;br&gt;
nextHoliday('2026-12-05');      // { date: '2026-12-25', name: 'Christmas Day', ... }&lt;br&gt;
State holidays vary and festival dates can shift with moon sighting — the README is explicit about both, and contributions for state lists are welcome.&lt;br&gt;
Why four small packages?&lt;br&gt;
Because that's how utilities actually get used: you install the one you need, not a framework. Each package is zero-dependency, ships TypeScript types, and has tests (34 across the toolkit). They live in one monorepo so they stay consistent: &lt;a href="https://github.com/manojchoudhary-dev/Bharat-ToolKit" rel="noopener noreferrer"&gt;https://github.com/manojchoudhary-dev/Bharat-ToolKit&lt;/a&gt;&lt;br&gt;
If you build for Indian users, try one and tell me what's missing. Issues and PRs are welcome — there are good-first-issues labelled if you're looking for a first open-source contribution.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>opensource</category>
      <category>india</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
