<?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: T. Paul</title>
    <description>The latest articles on DEV Community by T. Paul (@katistix).</description>
    <link>https://dev.to/katistix</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%2F555721%2Fd17c6cda-8b64-487a-9a2d-2770c9ca1aed.png</url>
      <title>DEV Community: T. Paul</title>
      <link>https://dev.to/katistix</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/katistix"/>
    <language>en</language>
    <item>
      <title>The easiest way to add a license file to your project</title>
      <dc:creator>T. Paul</dc:creator>
      <pubDate>Sun, 10 Mar 2024 08:40:36 +0000</pubDate>
      <link>https://dev.to/katistix/the-easiest-way-to-add-a-license-file-to-your-project-9eg</link>
      <guid>https://dev.to/katistix/the-easiest-way-to-add-a-license-file-to-your-project-9eg</guid>
      <description>&lt;p&gt;Adding a license file to your project is a good practice. It helps others understand how they can use your code and what are the limitations. In this article, we will see how to add a license file to your project in the easiest way possible using the &lt;code&gt;@katistix/license-cli&lt;/code&gt; package.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blog.paultal.online/blog/easiest-way-to-add-a-license-file-to-your-project"&gt;View the original blog post on my site&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a license file? 🤔
&lt;/h2&gt;

&lt;p&gt;A license file is a file that contains the terms and conditions for how others can use, modify, and distribute your code. It is a good practice to include a license file in your project, especially if you are planning to share it with others.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is &lt;code&gt;@katistix/license-cli&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;@katistix/license-cli&lt;/code&gt; is a command-line tool that I built using &lt;code&gt;Node.js&lt;/code&gt; and &lt;code&gt;Typescript&lt;/code&gt; that helps you add a license file to your project in the easiest way possible. It is a simple and easy-to-use tool that can be used to add a license file to your project in just a few seconds.&lt;/p&gt;

&lt;p&gt;For more information, you can check out the official GitHub repository: &lt;a href="https://github.com/katistix/license-cli"&gt;katistix/license-cli&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What licenses are supported right now?
&lt;/h2&gt;

&lt;p&gt;As of the time of writing this article, &lt;code&gt;@katistix/license-cli&lt;/code&gt; supports the following licenses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;MIT&lt;/li&gt;
&lt;li&gt;Apache 2.0&lt;/li&gt;
&lt;li&gt;GNU GPLv3&lt;/li&gt;
&lt;li&gt;The Unlicense&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With more licenses like &lt;code&gt;BSD 3-Clause&lt;/code&gt;, &lt;code&gt;BSD 2-Clause&lt;/code&gt;, &lt;code&gt;Mozilla Public License 2.0&lt;/code&gt;, &lt;code&gt;GNU LGPLv3&lt;/code&gt; and many more to be added in the future.&lt;/p&gt;

&lt;p&gt;You can see an up-to-date list of supported licenses on the &lt;a href="https://github.com/katistix/license-cli/tree/main/licenses"&gt;official GitHub repository&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use &lt;code&gt;@katistix/license-cli&lt;/code&gt;?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before you begin, you need to have &lt;code&gt;Node.js&lt;/code&gt; and &lt;code&gt;npm&lt;/code&gt; or &lt;code&gt;yarn&lt;/code&gt; installed on your system. If you don't have them installed, you can download and install them from the official website: &lt;a href="https://nodejs.org/"&gt;Node.js&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Install the package
&lt;/h3&gt;

&lt;p&gt;You can install the package using &lt;code&gt;npm&lt;/code&gt; or &lt;code&gt;yarn&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @katistix/license-cli

&lt;span class="c"&gt;# or&lt;/span&gt;

yarn global add @katistix/license-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will automatically install the package globally on your system.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Add a license file to your project
&lt;/h3&gt;

&lt;p&gt;Open your terminal and navigate to the root directory of your project. Then run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;license &amp;lt;license_type&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;&amp;lt;license_type&amp;gt;&lt;/code&gt; with the type of license you want to add to your project. For example, if you want to add the MIT license, you can run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;license mit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create a &lt;code&gt;LICENSE&lt;/code&gt; file in the root directory of your project with the MIT license text.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Done!
&lt;/h3&gt;

&lt;p&gt;That's it! You have successfully added a license file to your project using &lt;code&gt;@katistix/license-cli&lt;/code&gt;. You can now share your project with others, and they will know how they can use your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  💖 Support my projects
&lt;/h2&gt;

&lt;p&gt;I love open source and I love programming. If you want to show your appreciation for my work, consider supporting me on the following platforms. This way I can continue to create awesome projects and share them with everyone. Thank you! ❤️&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.buymeacoffee.com/katistix"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yjrXUD3l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt='"Buy Me A Coffee"' width="170" height="37"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://patreon.com/katistix"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wYBLAWNU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://img.shields.io/badge/Patreon-F96854%3Fstyle%3Dfor-the-badge%26logo%3Dpatreon%26logoColor%3Dwhite" alt="Patreon" width="102" height="28"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://ko-fi.com/G2G5R30KO"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B03mzg1g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://img.shields.io/badge/Ko--fi-F16061%3Fstyle%3Dfor-the-badge%26logo%3Dko-fi%26logoColor%3Dwhite" alt="Ko-Fi" width="79" height="28"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>cli</category>
      <category>tooling</category>
      <category>ux</category>
    </item>
  </channel>
</rss>
