<?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: Heng LOEM</title>
    <description>The latest articles on DEV Community by Heng LOEM (@hengloem).</description>
    <link>https://dev.to/hengloem</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%2F1209791%2F758532ea-cac9-42bd-b5b6-cedb747c31e2.png</url>
      <title>DEV Community: Heng LOEM</title>
      <link>https://dev.to/hengloem</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hengloem"/>
    <language>en</language>
    <item>
      <title>I built a Khmer Hybrid Calendar package for JavaScript/TypeScript</title>
      <dc:creator>Heng LOEM</dc:creator>
      <pubDate>Fri, 17 Jul 2026 03:10:41 +0000</pubDate>
      <link>https://dev.to/hengloem/i-built-a-khmer-hybrid-calendar-package-for-javascripttypescript-56ob</link>
      <guid>https://dev.to/hengloem/i-built-a-khmer-hybrid-calendar-package-for-javascripttypescript-56ob</guid>
      <description>&lt;p&gt;Hey everyone!&lt;/p&gt;

&lt;p&gt;I just released khmer-hybrid-calendar – a library that combines Gregorian and Khmer lunar calendars in one easy-to-use package.&lt;/p&gt;

&lt;p&gt;Why I built it:&lt;/p&gt;

&lt;p&gt;The Khmer calendar is an important part of Cambodian culture, used to determine holidays, religious observances, and traditional events. However, there weren't many modern, well-maintained libraries for developers to integrate this functionality into their applications. I created this to bridge that gap.&lt;/p&gt;

&lt;p&gt;Key features:&lt;/p&gt;

&lt;p&gt;✅ Accurate Khmer lunar date conversion with moon phase emojis&lt;br&gt;
✅ Complete list of Cambodian national holidays and Buddhist observances&lt;br&gt;
✅ Support for Chinese lunar festivals (New Year, Mid-Autumn, etc.)&lt;br&gt;
✅ iCal feed generation for any year&lt;br&gt;
✅ Full TypeScript support with bundled declarations&lt;br&gt;
✅ Works in Node.js, browser, and React/Next.js applications&lt;/p&gt;

&lt;p&gt;Example use:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;typescript&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;KhmerCalendar&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;khmer-hybrid-calendar&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;calendar&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;KhmerCalendar&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;khmerDate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;calendar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gregorianToKhmer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2026&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;khmerDate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;lunarDay&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// "១៥កើត"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I'd love to hear your feedback, ideas, or any questions you have!&lt;/p&gt;

&lt;p&gt;🔗 GitHub: &lt;a href="https://github.com/hengloem/khmer-hybrid-calendar-package" rel="noopener noreferrer"&gt;https://github.com/hengloem/khmer-hybrid-calendar-package&lt;/a&gt;&lt;br&gt;
📦 npm: &lt;a href="https://www.npmjs.com/package/khmer-hybrid-calendar" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/khmer-hybrid-calendar&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  opensource #javascript #khmer #calendar
&lt;/h1&gt;

</description>
      <category>npm</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
