<?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>Forem: shivanshuJags</title>
    <description>The latest articles on Forem by shivanshuJags (@shivanshujags).</description>
    <link>https://forem.com/shivanshujags</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F481349%2F1efe8085-df60-4687-98f3-f64a003a5d0a.png</url>
      <title>Forem: shivanshuJags</title>
      <link>https://forem.com/shivanshujags</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shivanshujags"/>
    <language>en</language>
    <item>
      <title>Introducing Codetrix: A Mordern Utility Library for Type-safe Javascript &amp; Typescript</title>
      <dc:creator>shivanshuJags</dc:creator>
      <pubDate>Sat, 26 Jul 2025 19:15:52 +0000</pubDate>
      <link>https://forem.com/shivanshujags/introducing-codetrix-a-mordern-utility-library-for-type-safe-javascript-typescript-jpa</link>
      <guid>https://forem.com/shivanshujags/introducing-codetrix-a-mordern-utility-library-for-type-safe-javascript-typescript-jpa</guid>
      <description>&lt;p&gt;Hi devs! 👋&lt;/p&gt;

&lt;p&gt;After weeks of building and refining, I’m excited to introduce my new npm package: &lt;a href="https://www.npmjs.com/package/codetrix" rel="noopener noreferrer"&gt;codetrix&lt;/a&gt; — a modern, modular utility library built for cleaner, safer, and type-friendly JavaScript/TypeScript codebases.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is codetrix?
&lt;/h2&gt;

&lt;p&gt;codetrix is a lightweight utility library that provides essential helper functions for:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Numbers (e.g., clamp, randomInt, roundTo)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Arrays (e.g., unique, chunk, compact)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dates (e.g., isToday, formatDate, daysBetween)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Strings (e.g., truncate, camelCase, capitalize)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Objects (e.g., deepClone, getNested, isEmpty)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Validations (coming soon)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Think of it as your personal Lodash, but with full TypeScript support and a modern modular structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Built It
&lt;/h2&gt;

&lt;p&gt;While working on multiple frontend and full-stack projects, I often found myself:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Rewriting the same utility functions over and over&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Importing huge libraries (like Lodash) when I only needed 2–3 methods&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Wanting typed safety and tree-shakable modules&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So I built codetrix to solve those problems, and now I want to share it with the community.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install codetrix
// or
yarn add codetrix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;p&gt;Fully written in TypeScript&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Modular imports (e.g., codetrix/number)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lightweight and tree-shakable&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Growing function set (more coming!)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Looking for Feedback &amp;amp; Contributors
&lt;/h2&gt;

&lt;p&gt;I'm actively improving the library and open to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Feature requests&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bug reports&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Contributions&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/codetrix" rel="noopener noreferrer"&gt;Npm Codetrix&lt;/a&gt;&lt;br&gt;
&lt;a href="https://shivanshujags.github.io/codetrix/" rel="noopener noreferrer"&gt;Documentation&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/shivanshujags/codetrix" rel="noopener noreferrer"&gt;Git Repo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>frontend</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
