<?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: Rocktim Saikia</title>
    <description>The latest articles on DEV Community by Rocktim Saikia (@rocktimsaikia).</description>
    <link>https://dev.to/rocktimsaikia</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%2F73398%2F8976a8bf-8535-478d-aec9-6d9681a54497.jpeg</url>
      <title>DEV Community: Rocktim Saikia</title>
      <link>https://dev.to/rocktimsaikia</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rocktimsaikia"/>
    <language>en</language>
    <item>
      <title>Github-dlr: Download individual files and folders from Github recursively.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sun, 01 Sep 2024 14:35:37 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/github-dlr-download-individual-files-and-folders-from-github-recursively-m92</link>
      <guid>https://dev.to/rocktimsaikia/github-dlr-download-individual-files-and-folders-from-github-recursively-m92</guid>
      <description>&lt;p&gt;Have you ever needed just one file or a specific folder from a GitHub repository but didn’t want to clone the entire project? As a terminal enthusiast, I often found myself in this situation, and it led me to create a tool that solves this problem in the simplest way possible.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is &lt;code&gt;github-dlr&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;github-dlr&lt;/code&gt; is a terminal tool designed to make your life easier by allowing you to download individual files and folders from a GitHub repository without the hassle of cloning the entire repository. Whether you’re working with large projects or just need a specific part of a repo, &lt;code&gt;github-dlr&lt;/code&gt; gets it done with just a few keystrokes.&lt;/p&gt;

&lt;p&gt;Check out the project on GitHub:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/github-dlr" rel="noopener noreferrer"&gt;
        github-dlr
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Download individual files and folders from Github recursively.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Who Can Benefit from &lt;code&gt;github-dlr&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;This tool is perfect for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terminal Power Users&lt;/strong&gt;: If you’re comfortable with the terminal and have Python installed, &lt;code&gt;github-dlr&lt;/code&gt; is a lightweight and efficient solution for grabbing specific files from GitHub.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux Enthusiasts&lt;/strong&gt;: For those who enjoy customizing their Linux setups (often referred to as "ricing"), this tool is particularly useful. Whether you’re after individual wallpapers, config files, or scripts from various repositories, &lt;code&gt;github-dlr&lt;/code&gt; makes it quick and easy to download exactly what you need.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why I Created &lt;code&gt;github-dlr&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;The motivation behind &lt;code&gt;github-dlr&lt;/code&gt; came from my own frustrations. Time and again, I found myself wanting just a single file or a specific folder from a public GitHub repository, only to realize there wasn’t a straightforward way to do it through the terminal. While there are websites that offer this functionality, I wanted something that could be accessed directly from the terminal with minimal effort.&lt;/p&gt;

&lt;p&gt;As a terminal power user, I prefer tools that are just a few keystrokes away. So, I decided to build &lt;code&gt;github-dlr&lt;/code&gt;—a tool that aligns with the way I work and, hopefully, with the way many of you work too.&lt;/p&gt;

&lt;h3&gt;
  
  
  How &lt;code&gt;github-dlr&lt;/code&gt; Works
&lt;/h3&gt;

&lt;p&gt;Using &lt;code&gt;github-dlr&lt;/code&gt; is incredibly simple. After installing the tool, you can use a single command to download any specific file or folder from a GitHub repository. No more unnecessary cloning, no more navigating through massive project structures—just the files you need, right when you need them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Feedback and Contributions
&lt;/h3&gt;

&lt;p&gt;I’m really excited to share this tool with the community, and I’m eager to hear your feedback. Whether you have suggestions for new features, improvements, or just want to share how you’re using &lt;code&gt;github-dlr&lt;/code&gt;, I’d love to hear from you. You can reach out through GitHub or leave a comment below.&lt;/p&gt;

&lt;p&gt;Check out the project and give it a try:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/github-dlr" rel="noopener noreferrer"&gt;
        github-dlr
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Download individual files and folders from Github recursively.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Thank you for your support, and I hope &lt;code&gt;github-dlr&lt;/code&gt; becomes a useful tool in your development toolkit!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>cli</category>
      <category>github</category>
    </item>
    <item>
      <title>I built a simple anime quotes API with Next.js and Koa.✨</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sun, 28 Feb 2021 12:18:23 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/i-built-a-simple-anime-quotes-api-with-next-js-and-koa-37i6</link>
      <guid>https://dev.to/rocktimsaikia/i-built-a-simple-anime-quotes-api-with-next-js-and-koa-37i6</guid>
      <description>&lt;p&gt;Hi Guys, I just quickly wanted to share with you all my recently re-created side project &lt;a href="https://animechan.vercel.app/" rel="noopener noreferrer"&gt;Animechan&lt;/a&gt;. A tiny rest API that serves your favorite anime quotes in no-time. You can use this API in any of your personal projects.&lt;/p&gt;

&lt;p&gt;The project is built upon :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next.js (frontend)&lt;/li&gt;
&lt;li&gt;Koa.js (backend)&lt;/li&gt;
&lt;li&gt;TailwindCSS&lt;/li&gt;
&lt;li&gt;MongoDB.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks :)&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>✨ module to read git user config from the system and return it as a JSON object.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sun, 11 Oct 2020 18:04:33 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/module-to-read-git-user-config-from-the-system-and-return-it-as-a-json-object-23m8</link>
      <guid>https://dev.to/rocktimsaikia/module-to-read-git-user-config-from-the-system-and-return-it-as-a-json-object-23m8</guid>
      <description>&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/read-git-user" rel="noopener noreferrer"&gt;
        read-git-user
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Returns the GitHub username and email of the current system's .gitconfig
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Read-git-user&lt;/strong&gt; is a tiny 1.3kB✨ module that can be used to retrieve the git username and email right from the systems global &lt;code&gt;.gitconfig&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;How this works is that the module looks for &lt;code&gt;HOME || USERPROFILE&lt;/code&gt; and reads the &lt;code&gt;ini&lt;/code&gt; file from there and returns it as a parsed JSON object. &lt;/p&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&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="nx"&gt;readGitUser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;read-git-user&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;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;gitUser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readGitUser&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="c1"&gt;//=&amp;gt; {user: rocktimsaikia, email: rocktimsaikia@gmail.com}&lt;/span&gt;

        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;gitUser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;readGitUser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sync&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="c1"&gt;//=&amp;gt; {user: rocktimsaikia, email: rocktimsaikia@gmail.com}&lt;/span&gt;
&lt;span class="p"&gt;})();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;[ PS: I created this tool to use it in a project that I am working on. I thought someone might find it handy so made a quick post. Leave a star at the repo 🌟 if find this helpful. Thanks for reading 👋]&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
      <category>github</category>
    </item>
    <item>
      <title>✨ Github-feed-cli : Github feed right at your terminal.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sat, 10 Oct 2020 17:36:42 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/github-feed-cli-github-feed-right-at-your-terminal-1gj5</link>
      <guid>https://dev.to/rocktimsaikia/github-feed-cli-github-feed-right-at-your-terminal-1gj5</guid>
      <description>&lt;p&gt;&lt;strong&gt;✨ Github-feed-cli&lt;/strong&gt; is a cli app that brings your GitHub feed right to your terminal.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/github-feed-cli" rel="noopener noreferrer"&gt;
        github-feed-cli
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      ✨ Github feed right at your terminal
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Most of the time while I am coding I have this habit of quickly checking my GitHub feed for no reason. &lt;br&gt;
So I thought it would really cool if I could take a quick look at my GitHub feed right from my working terminal. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fuz5qsvpveonho12owv4l.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fuz5qsvpveonho12owv4l.gif" alt="Alt Text" width="1223" height="654"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;Well, that idea alone was enough for me to fork my &lt;a href="https://github.com/RocktimSaikia/my-module-template" rel="noopener noreferrer"&gt;my extended boilerplate&lt;/a&gt; and start coding at 1.20 AM at the morning for the cli app that does exactly the job that I mentioned which is &lt;strong&gt;&lt;em&gt;Bringing GitHub feed to my your terminal&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here is how to get strated with this tool:&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--global&lt;/span&gt; github-feed-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Usage
    &lt;span class="nv"&gt;$ &lt;/span&gt;feed &amp;lt;options&amp;gt;

Options
    &lt;span class="nt"&gt;--username&lt;/span&gt;, &lt;span class="nt"&gt;-u&lt;/span&gt; Github username to fetch the feed &lt;span class="o"&gt;[&lt;/span&gt;default: Your own git username]
    &lt;span class="nt"&gt;--page&lt;/span&gt;, &lt;span class="nt"&gt;-p&lt;/span&gt; Page number of the results to fetch &lt;span class="o"&gt;[&lt;/span&gt;default: 1]
    &lt;span class="nt"&gt;--version&lt;/span&gt;, &lt;span class="nt"&gt;-v&lt;/span&gt; Get the current version

Examples
    &lt;span class="nv"&gt;$ &lt;/span&gt;feed
    &lt;span class="nv"&gt;$ &lt;/span&gt;feed &lt;span class="nt"&gt;--page&lt;/span&gt; 2
    &lt;span class="nv"&gt;$ &lt;/span&gt;feed &lt;span class="nt"&gt;--username&lt;/span&gt; rocktimsaikia
    &lt;span class="nv"&gt;$ &lt;/span&gt;feed &lt;span class="nt"&gt;--username&lt;/span&gt; rocktimsaikia &lt;span class="nt"&gt;-page&lt;/span&gt; 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;When you simply run &lt;code&gt;feed&lt;/code&gt; without any flags/input it will fetch and show your current GitHub feed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can also see any other GitHub users feed too by adding the &lt;code&gt;--username&lt;/code&gt; flag following the &lt;code&gt;github username&lt;/code&gt; of the person you wanna check.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you want to go to the next page of the feed, you can simply pass in &lt;code&gt;--page&lt;/code&gt; following by the page number. Default is 1.&lt;br&gt;&lt;br&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;[ PS: This was a fun little project and I had an awesome time coding it. I thought someone else might find it interesting too so made a quick post on it. &lt;br&gt;
Also leave a star at &lt;a href="https://github.com/RocktimSaikia/github-feed-cli" rel="noopener noreferrer"&gt;the repo&lt;/a&gt; 🌟 if you like this project. Thanks for reading 🦄 👋]&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>github</category>
      <category>productivity</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Need an active Maintainer 👷🏼 for a beginner-friendly open source project.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Thu, 08 Oct 2020 19:27:29 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/need-an-active-maintainer-for-a-beginner-friendly-open-source-project-3n1a</link>
      <guid>https://dev.to/rocktimsaikia/need-an-active-maintainer-for-a-beginner-friendly-open-source-project-3n1a</guid>
      <description>&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/Contribute-101" rel="noopener noreferrer"&gt;
        Contribute-101
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      ✨ A simple project to get you started with your first open source contribution.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;✨ Contribute-101&lt;/strong&gt; is a simple beginner-friendly open source project that I have been maintaining for quite a long time now. But due to my latest internship and personal projects, I don't have much time nowadays to actively maintain the project anymore.&lt;/p&gt;

&lt;p&gt;So I wanted to write a post in a hope to find someone having a good knowledge of both open source and git in particular to further maintain this project. It is not that I am completely going to step away from the project but I just can't give the time anymore like I used to a few months ago.&lt;/p&gt;

&lt;p&gt;So if anyone experienced in open source wants to help and be an active maintainer then please leave a comment with your Github profile below :) 🦄 👋.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
      <category>hacktoberfest</category>
    </item>
    <item>
      <title>✨ Flatify-obj: Flatten nested objects into a single-depth object.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Mon, 05 Oct 2020 14:26:18 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/flatify-obj-flatten-nested-objects-into-a-single-depth-object-bja</link>
      <guid>https://dev.to/rocktimsaikia/flatify-obj-flatten-nested-objects-into-a-single-depth-object-bja</guid>
      <description>&lt;p&gt;&lt;strong&gt;✨ Flatify-obj&lt;/strong&gt; is a simple module that flattens nested javascript objects into a single-depth object.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/flatify-obj" rel="noopener noreferrer"&gt;
        flatify-obj
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Flatten nested javascript objects into a single-depth object.
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;

&lt;p&gt;This module can come in pretty handy in situations where you are dealing with deeply nested objects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&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;flatify-obj
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;flattenObject&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;flatify-obj&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;flattenObject&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;foo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;bar&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;unicorn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;🦄&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;}}})&lt;/span&gt;
&lt;span class="c1"&gt;//=&amp;gt; { 'foo.bar.unicorn': '🦄' }&lt;/span&gt;

&lt;span class="nf"&gt;flattenObject&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;foo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;unicorn&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;🦄&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="na"&gt;bar&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;unicorn&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="na"&gt;onlyLeaves&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="c1"&gt;//=&amp;gt; {unicorn: '🦄', bar: 'unicorn'}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;
[ PS: I created this tool to use it in a project that I am working on. I thought someone might find it handy so made a quick post. Leave a star at &lt;a href="https://github.com/RocktimSaikia/flatify-obj" rel="noopener noreferrer"&gt;the repo&lt;/a&gt; 🌟 if find this helpful. Thanks for reading 🦄 👋]&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>github</category>
      <category>javascript</category>
    </item>
    <item>
      <title>✨ read-packages : a simple package that returns the dependencies of a package.json file.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sun, 04 Oct 2020 14:11:55 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/read-packages-a-simple-package-that-returns-the-dependencies-of-a-package-json-file-la7</link>
      <guid>https://dev.to/rocktimsaikia/read-packages-a-simple-package-that-returns-the-dependencies-of-a-package-json-file-la7</guid>
      <description>&lt;p&gt;I wrote a simple module that returns the &lt;code&gt;dependencies&lt;/code&gt; of a &lt;code&gt;package.json&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;It has some additional options that you can pass in. Check the project &lt;code&gt;readme&lt;/code&gt; for more info.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&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;read-packages
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;readPackages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;read-packages&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&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="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readPackages&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
       &lt;span class="c1"&gt;//=&amp;gt; {dependencies: {foo: '^1.0.0',..}, devDependencies: {bar: '^2.0.0',...}}&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="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readPackages&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;dir&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./some/other/directory&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;}));&lt;/span&gt;
       &lt;span class="c1"&gt;//=&amp;gt; {dependencies: {...}, devDependencies: {...}}&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="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readPackages&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;removePrefix&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;}));&lt;/span&gt;
       &lt;span class="c1"&gt;//=&amp;gt; {dependencies: {foo: '1.0.0',..}, devDependencies: {bar: '2.0.0',...}}&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="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;readPackages&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="na"&gt;removePrefix&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;flattenPackages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;}));&lt;/span&gt;
       &lt;span class="c1"&gt;//=&amp;gt; {foo: '1.0.0',bar: '2.0.0',...}&lt;/span&gt;
&lt;span class="p"&gt;})();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/read-packages" rel="noopener noreferrer"&gt;
        read-packages
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Read dependencies of a package.json file.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;read-packages &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b7731710349bc767003573b4d7189928750bd43d2c1be99b9568b9cad7d44b6e/68747470733a2f2f7472617669732d63692e636f6d2f726f636b74696d7361696b69612f726561642d7061636b616765732e7376673f6272616e63683d6d6173746572"&gt;&lt;img src="https://camo.githubusercontent.com/b7731710349bc767003573b4d7189928750bd43d2c1be99b9568b9cad7d44b6e/68747470733a2f2f7472617669732d63692e636f6d2f726f636b74696d7361696b69612f726561642d7061636b616765732e7376673f6272616e63683d6d6173746572" alt="build"&gt;&lt;/a&gt; &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/52be7b89567ce81dae76f84cf748c1e957d060119f832558e01f8a1a0958ee68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726f636b74696d7361696b69612f726561642d7061636b61676573"&gt;&lt;img src="https://camo.githubusercontent.com/52be7b89567ce81dae76f84cf748c1e957d060119f832558e01f8a1a0958ee68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726f636b74696d7361696b69612f726561642d7061636b61676573" alt="license"&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Read dependencies of a package.json file.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Install&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;npm install read-packages&lt;/pre&gt;

&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="highlight highlight-source-js notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;const&lt;/span&gt; &lt;span class="pl-s1"&gt;readPackages&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; &lt;span class="pl-en"&gt;require&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;'read-packages'&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;

&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-k"&gt;async&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-c1"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pl-kos"&gt;{&lt;/span&gt;
        &lt;span class="pl-smi"&gt;console&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;log&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-k"&gt;await&lt;/span&gt; &lt;span class="pl-s1"&gt;readPackages&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;
        &lt;span class="pl-c"&gt;//=&amp;gt; {dependencies: {foo: '^1.0.0',..}, devDependencies: {bar: '^2.0.0',...}}&lt;/span&gt;

        &lt;span class="pl-smi"&gt;console&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;log&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-k"&gt;await&lt;/span&gt; &lt;span class="pl-s1"&gt;readPackages&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;{&lt;/span&gt;&lt;span class="pl-c1"&gt;dir&lt;/span&gt;: &lt;span class="pl-s"&gt;'./some/other/directory'&lt;/span&gt;&lt;span class="pl-kos"&gt;}&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;
        &lt;span class="pl-c"&gt;//=&amp;gt; {dependencies: {...}, devDependencies: {...}}&lt;/span&gt;

        &lt;span class="pl-smi"&gt;console&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;log&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-k"&gt;await&lt;/span&gt; &lt;span class="pl-s1"&gt;readPackages&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;{&lt;/span&gt;&lt;span class="pl-c1"&gt;removePrefix&lt;/span&gt;: &lt;span class="pl-c1"&gt;true&lt;/span&gt;&lt;span class="pl-kos"&gt;}&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;
        &lt;span class="pl-c"&gt;//=&amp;gt; {dependencies: {foo: '1.0.0',..}, devDependencies: {bar: '2.0.0',...}}&lt;/span&gt;

        &lt;span class="pl-smi"&gt;console&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;log&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-k"&gt;await&lt;/span&gt; &lt;span class="pl-s1"&gt;readPackages&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;{&lt;/span&gt;&lt;span class="pl-c1"&gt;removePrefix&lt;/span&gt;: &lt;span class="pl-c1"&gt;true&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt; &lt;span class="pl-c1"&gt;flattenPackages&lt;/span&gt;: &lt;span class="pl-c1"&gt;true&lt;/span&gt;&lt;span class="pl-kos"&gt;}&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;
        &lt;span class="pl-c"&gt;//=&amp;gt; {foo: '1.0.0',bar: '2.0.0',...}&lt;/span&gt;
&lt;span class="pl-kos"&gt;}&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage without &lt;code&gt;async&lt;/code&gt;
&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;The module has a &lt;code&gt;sync&lt;/code&gt; property to use the lib without async. All the other options works just the same.&lt;/p&gt;

&lt;div class="highlight highlight-source-js notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;const&lt;/span&gt; &lt;span class="pl-s1"&gt;readPackages&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; &lt;span class="pl-en"&gt;require&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;'read-packages'&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;
&lt;span class="pl-smi"&gt;console&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;log&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s1"&gt;readPackages&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/rocktimsaikia/read-packages" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;[PS: Thought someone might find it a handy tool so I made a quick post. Thanks for reading 🦄 👋]&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Get the availabe MIME types of a given extension.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Fri, 02 Oct 2020 19:55:43 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/get-the-mime-type-of-a-url-by-its-extension-25c1</link>
      <guid>https://dev.to/rocktimsaikia/get-the-mime-type-of-a-url-by-its-extension-25c1</guid>
      <description>&lt;p&gt;I just recently published a simple node module that returns the availabe starndard MIME types of a given an extension.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&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;mime-type-check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;getMimeType&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;mime-type-check&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;getMimeType&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;svg&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;//=&amp;gt; ['image/svg+xml']&lt;/span&gt;
&lt;span class="nf"&gt;getMimeType&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;png&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;//=&amp;gt; ['image/png']&lt;/span&gt;
&lt;span class="nf"&gt;getMimeType&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;3gpp&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;//=&amp;gt; ['audio/3gpp', 'video/3gpp']&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/mime-type-check" rel="noopener noreferrer"&gt;
        mime-type-check
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Check all the available MIME types of an extension
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;mime-type-check &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/000e741c04cc228cc2ebacb5ff254c7eeda1c60233c213f18915eb2ee210709b/68747470733a2f2f7472617669732d63692e636f6d2f526f636b74696d5361696b69612f6d696d652d747970652d636865636b2e7376673f6272616e63683d6d6173746572"&gt;&lt;img src="https://camo.githubusercontent.com/000e741c04cc228cc2ebacb5ff254c7eeda1c60233c213f18915eb2ee210709b/68747470733a2f2f7472617669732d63692e636f6d2f526f636b74696d5361696b69612f6d696d652d747970652d636865636b2e7376673f6272616e63683d6d6173746572" alt="build"&gt;&lt;/a&gt; &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a41aee23e01249d132ab9fdc13f8ef8f0c166668382c8227690dc3eacd6427fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726f636b74696d7361696b69612f6d696d652d747970652d636865636b"&gt;&lt;img src="https://camo.githubusercontent.com/a41aee23e01249d132ab9fdc13f8ef8f0c166668382c8227690dc3eacd6427fb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726f636b74696d7361696b69612f6d696d652d747970652d636865636b" alt="license"&gt;&lt;/a&gt;
&lt;/h1&gt;

&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;Check all the available &lt;code&gt;MIME types&lt;/code&gt; of a extension.&lt;/p&gt;
&lt;/blockquote&gt;



&lt;p&gt;It uses &lt;a href="https://github.com/jshttp/mime-db" rel="noopener noreferrer"&gt;Mime-db&lt;/a&gt; as its core database.&lt;br&gt;
Do not use this module to actually check the MIME type of a local or remote file. For that use &lt;a href="https://github.com/sindresorhus/file-type" rel="noopener noreferrer"&gt;File-type&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Install&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;npm install mime-type-check&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-js notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;const&lt;/span&gt; &lt;span class="pl-s1"&gt;getMimeType&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; &lt;span class="pl-en"&gt;require&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;"mime-type-check"&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;

&lt;span class="pl-s1"&gt;getMimeType&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;"svg"&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt; &lt;span class="pl-c"&gt;//=&amp;gt; ['image/svg+xml']&lt;/span&gt;
&lt;span class="pl-s1"&gt;getMimeType&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;"png"&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt; &lt;span class="pl-c"&gt;//=&amp;gt; ['image/png']&lt;/span&gt;
&lt;span class="pl-s1"&gt;getMimeType&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;"3gpp"&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt; &lt;span class="pl-c"&gt;//=&amp;gt; ['audio/3gpp', 'video/3gpp']&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;API&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;getMimeType(string)&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;&lt;code&gt;string&lt;/code&gt; is the extension to check the mimetypes for.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;License&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;MIT © &lt;a href="https://rocktim.xyz" rel="nofollow noopener noreferrer"&gt;Rocktim Saikia&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/rocktimsaikia/mime-type-check" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;[PS: I created this module to use it in another project that I am currently workin on. Thought someone might find it helpful so made a quick post.]&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>meta-fetcher: URL meta-data fetcher for Node.js</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sat, 12 Sep 2020 15:27:03 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/meta-fetcher-tiny-url-meta-data-fetcher-for-node-js-24bb</link>
      <guid>https://dev.to/rocktimsaikia/meta-fetcher-tiny-url-meta-data-fetcher-for-node-js-24bb</guid>
      <description>&lt;p&gt;Hi, Myself Rocktim Saikia. And today I want to showcase a simple project that I have been working on for couple of days now.&lt;/p&gt;

&lt;h2&gt;
  
  
  meta-fetcher 🔎
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;meta-fecther&lt;/strong&gt; is simple and tiny url meta-data fetcher for Nodejs. Under the hood this module uses &lt;a href="https://github.com/node-fetch/node-fetch" rel="noopener noreferrer"&gt;node-fetch&lt;/a&gt; to fetch the meta tags of given website url and returns the parsed meta-data as a &lt;code&gt;JSON&lt;/code&gt; object.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/meta-fetcher" rel="noopener noreferrer"&gt;
        meta-fetcher
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Simple metadata scrapper for node.js
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;meta-fetcher&lt;/h1&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/rocktimsaikia/meta-fetcher/actions/workflows/main.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/rocktimsaikia/meta-fetcher/actions/workflows/main.yml/badge.svg" alt="CI"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/10285c3b26c1b541c08002dbc09a3ee4db3c3ddad48ae3971def7efcc309e7fe/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d6574612d666574636865723f7374796c653d666c617426636f6c6f723d73756363657373266c6f676f3d6e706d"&gt;&lt;img src="https://camo.githubusercontent.com/10285c3b26c1b541c08002dbc09a3ee4db3c3ddad48ae3971def7efcc309e7fe/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d6574612d666574636865723f7374796c653d666c617426636f6c6f723d73756363657373266c6f676f3d6e706d" alt="npm"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Simple metadata scrapper.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Installation&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;yarn add meta-fetcher&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-source-js notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-k"&gt;import&lt;/span&gt; &lt;span class="pl-s1"&gt;metaFetcher&lt;/span&gt; &lt;span class="pl-k"&gt;from&lt;/span&gt; &lt;span class="pl-s"&gt;'meta-fetcher'&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;

&lt;span class="pl-k"&gt;const&lt;/span&gt; &lt;span class="pl-s1"&gt;result&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; &lt;span class="pl-k"&gt;await&lt;/span&gt; &lt;span class="pl-en"&gt;metaFetcher&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;'https://hoppscotch.io/'&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;

&lt;span class="pl-smi"&gt;console&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;log&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s1"&gt;result&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;div class="highlight highlight-source-json notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;{
  &lt;span class="pl-ent"&gt;"title"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;Hoppscotch - Open source API development ecosystem&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
  &lt;span class="pl-ent"&gt;"description"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;Helps you create requests faster, saving precious time on development.&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
  &lt;span class="pl-ent"&gt;"image"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;https://hoppscotch.io/og.png&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
  &lt;span class="pl-ent"&gt;"url"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;https://hoppscotch.io/&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
  &lt;span class="pl-ent"&gt;"siteName"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;Hoppscotch&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;,
  &lt;span class="pl-ent"&gt;"type"&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;website&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;
}&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;API&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;metaFetcher(input)&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;Takes one url string as a parameter and returns an object containing the meta-information.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h4 class="heading-element"&gt;input&lt;/h4&gt;

&lt;/div&gt;
&lt;p&gt;type: &lt;code&gt;string&lt;/code&gt; &lt;br&gt;
default: &lt;code&gt;'none'&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The url string to be scrapped.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Related&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://github.com/rocktimsaikia/page-scrapper" rel="noopener noreferrer"&gt;&lt;strong&gt;page-scrapper&lt;/strong&gt;&lt;/a&gt;: Node.js scrapper that pulls out all links and images of a given site.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;License&lt;/h2&gt;

&lt;/div&gt;
&lt;p&gt;2024 &lt;a href="https://choosealicense.com/licenses/mit/" rel="nofollow noopener noreferrer"&gt;MIT&lt;/a&gt; © &lt;a href="https://rocktimsaikia.dev" rel="nofollow noopener noreferrer"&gt;Rocktim Saikia&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/rocktimsaikia/meta-fetcher" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h2&gt;
  
  
  Install
&lt;/h2&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;meta-fetcher
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Basic Usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;fetchMetaData&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;meta-fetcher&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;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;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetchMetaData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://hoppscotch.io/&lt;/span&gt;&lt;span class="dl"&gt;'&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;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="cm"&gt;/*
        {
        basic_metadata: {
            website: 'https://hoppscotch.io/',
            title: 'Hoppscotch • A free, fast and beautiful API request builder',
            description: 'A free, fast and beautiful API request builder'
        },
        opengraph: {
            'og:image': 'https://hoppscotch.io/banner.jpg',
            'og:type': 'website',
            'og:title': 'Hoppscotch',
            'og:site_name': 'Hoppscotch',
            'og:description': 'A free, fast and beautiful API request builder',
            'og:url': 'https://hoppscotch.io/'
        },
        opengraph_social: {
            'twitter:card': 'summary_large_image',
            'twitter:site': '@liyasthomas',
            'twitter:creator': '@liyasthomas'
        },
        favicons: [
            'https://hoppscotch.io/icon.png',
            'https://hoppscotch.io/icon.png',
            'https://hoppscotch.io/_nuxt/icons/icon_64x64.9834b3.png'
        ]
        }
    */&lt;/span&gt; 
&lt;span class="p"&gt;})();&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;p&gt;It can also fetch meta-data from &lt;code&gt;shortened-url&lt;/code&gt;.&lt;br&gt;
For example:&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="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;fetchMetaData&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;meta-fetcher&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;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;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetchMetaData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://bit.ly/2Fj9sNF&lt;/span&gt;&lt;span class="dl"&gt;'&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;result&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;})();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There a few advanced options that you can use before fetching. You can check them in the &lt;code&gt;readme.md&lt;/code&gt; section.&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;If you like the project. Do leave a &lt;a href="https://github.com/RocktimSaikia/meta-fetcher/" rel="noopener noreferrer"&gt;star at repo&lt;/a&gt; 🌟&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Badge it- A Github Action to automate the process of adding Badges to your Readme.</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Tue, 25 Aug 2020 16:58:53 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/badge-it-a-github-action-to-automate-adding-badges-to-your-readme-4l4p</link>
      <guid>https://dev.to/rocktimsaikia/badge-it-a-github-action-to-automate-adding-badges-to-your-readme-4l4p</guid>
      <description>&lt;p&gt;Hi, Myself &lt;a href="https://rocktim.xyz" rel="noopener noreferrer"&gt;Rocktim&lt;/a&gt; and this is my submission for Actionshackathon.&lt;/p&gt;

&lt;h3&gt;
  
  
  My Workflow
&lt;/h3&gt;

&lt;h4&gt;
  
  
  &lt;em&gt;What is Badge-it?&lt;/em&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Badge-it&lt;/em&gt;&lt;/strong&gt; is a simple GitHub action that automates the process of adding the &lt;a href="https://shield.io" rel="noopener noreferrer"&gt;Badges&lt;/a&gt; to your projects Readme ⚡ We all love to add badges to our GitHub projects to decorate it in a way so that the project does not look dull.&lt;/p&gt;

&lt;p&gt;But the process of adding badges every time you create a GitHub project can be quite tedious. From all the copy-pasting to configuring your &lt;code&gt;github_username&lt;/code&gt; and &lt;code&gt;repo_name&lt;/code&gt;. And that's what I tried to solve with &lt;strong&gt;&lt;em&gt;Badge-it&lt;/em&gt;&lt;/strong&gt;. It saves you the time of configuring and adding badges&lt;br&gt;
yourself manually.&lt;/p&gt;
&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;I am submitting this action under the following categories.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interesting IoT &lt;/li&gt;
&lt;li&gt;Wacky Wildcards)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Yaml File or Link to Code
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Usage&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The action takes 3 inputs. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Github token&lt;/li&gt;
&lt;li&gt;A string of badges separated by

&lt;code&gt;commas(,)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;ul&gt;
&lt;li&gt;A base style for your badges.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Add Badges&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;rocktimsaikia/badge-it@master&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;GITHUB_TOKEN&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ secrets.MY_TOKEN }}&lt;/span&gt;
          &lt;span class="na"&gt;badges&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;gh_license,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;gh_version,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;github_stars'&lt;/span&gt;
          &lt;span class="na"&gt;badge-style&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;flat-square'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;&lt;em&gt;Bagde-it Repo&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rocktimsaikia" rel="noopener noreferrer"&gt;
        rocktimsaikia
      &lt;/a&gt; / &lt;a href="https://github.com/rocktimsaikia/badge-it" rel="noopener noreferrer"&gt;
        badge-it
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
       Github action to automatically add badges to your readme ⚡
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;badge-it &lt;a rel="noopener noreferrer" href="https://github.com/rocktimsaikia/badge-it/workflows/build/badge.svg"&gt;&lt;img src="https://github.com/rocktimsaikia/badge-it/workflows/build/badge.svg" alt="Build Status"&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;Github action to automatically add &lt;a href="https://shields.io/" rel="nofollow noopener noreferrer"&gt;shield badges&lt;/a&gt; to your README.md ⚡&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A Github action to add badges in your &lt;code&gt;README.md&lt;/code&gt; without any hassle. We love badges but generially it's a tedious job to copy paste badges from &lt;a href="https://shields.io/" rel="nofollow noopener noreferrer"&gt;shield.io&lt;/a&gt; to your &lt;code&gt;README.md&lt;/code&gt; .So this Action helps to add badges without you having to do all the copy pasting and configuration.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h4 class="heading-element"&gt;&lt;a href="https://github.com/RocktimSaikia/badge-it-demo" rel="noopener noreferrer"&gt;DEMO REPO&lt;/a&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Badges&lt;/strong&gt; - To add your preffered badge, check it's correspoding &lt;code&gt;key&lt;/code&gt; in the &lt;em&gt;&lt;strong&gt;&lt;code&gt;Availabe Badges&lt;/code&gt;&lt;/strong&gt;&lt;/em&gt; section below and add the key in the &lt;code&gt;badges&lt;/code&gt; input seperated by &lt;code&gt;commas (,)&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Badge Style&lt;/strong&gt; - To specifiy style for your badges .Add your preffered badge style in the &lt;code&gt;badge-style&lt;/code&gt; input. Default is &lt;code&gt;flat&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight highlight-source-yaml notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;- &lt;span class="pl-ent"&gt;name&lt;/span&gt;: &lt;span class="pl-s"&gt;Add Badges&lt;/span&gt;
  &lt;span class="pl-ent"&gt;uses&lt;/span&gt;: &lt;span class="pl-s"&gt;rocktimsaikia/badge-it@master&lt;/span&gt;
  &lt;span class="pl-ent"&gt;with&lt;/span&gt;:
    &lt;span class="pl-ent"&gt;GITHUB_TOKEN&lt;/span&gt;: &lt;span class="pl-s"&gt;${{ secrets.MY_TOKEN }}&lt;/span&gt;
    &lt;span class="pl-ent"&gt;badges&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;'&lt;/span&gt;gh_license, gh_version, gh_stars&lt;span class="pl-pds"&gt;'&lt;/span&gt;&lt;/span&gt;
    &lt;span class="pl-ent"&gt;badge-style&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;'&lt;/span&gt;flat-square&lt;span class="pl-pds"&gt;'&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Inputs&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GITHUB_TOKEN&lt;/strong&gt; - A personal Github token.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;badges&lt;/strong&gt;…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/rocktimsaikia/badge-it" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;Currently, there is no open-source project using this action. So in the meantime, I am linking &lt;a href="https://github.com/RocktimSaikia/badge-it-demo" rel="noopener noreferrer"&gt;a demo repository&lt;/a&gt; for demo purposes.&lt;/p&gt;

&lt;p&gt;Thank you for taking the time and checking out &lt;strong&gt;&lt;em&gt;badge-it&lt;/em&gt;&lt;/strong&gt;. If you like the project don't forget to add a star ⚡ or if you want to contribute you are more then welcome. 🚀&lt;/p&gt;

&lt;h3&gt;
  
  
  Update 🚀 ⚡
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;newly added badges will be updated here&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6ns7ipvhauguqzh1sm1s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6ns7ipvhauguqzh1sm1s.png" alt="avavilabe badges" width="703" height="646"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>actionshackathon</category>
      <category>github</category>
      <category>javascript</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Scaffold your GitHub actions with Yeoman generator 🚀</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sun, 23 Aug 2020 12:00:53 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/scaffold-your-github-actions-with-yeoman-generator-39ic</link>
      <guid>https://dev.to/rocktimsaikia/scaffold-your-github-actions-with-yeoman-generator-39ic</guid>
      <description>&lt;p&gt;I created a Yeoman generator to easily scaffold your javascript-based Github actions. &lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i3JOwpme--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/RocktimSaikia"&gt;
        RocktimSaikia
      &lt;/a&gt; / &lt;a href="https://github.com/RocktimSaikia/generator-github-action"&gt;
        generator-github-action
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Yeoman generator for scaffolding your javascript github action.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/rocktimsaikia/generator-github-action/blob/master/.github/logo.png?raw=true"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qG8bMxqT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/rocktimsaikia/generator-github-action/raw/master/.github/logo.png%3Fraw%3Dtrue" height="40px"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
 generator-github-action&lt;/h1&gt;
&lt;p&gt;A yeoman generator for scaffolding your javascript &lt;a href="https://github.com/actions/javascript-action"&gt;Github action&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
&lt;a rel="noopener noreferrer" href="https://github.com/rocktimsaikia/generator-github-action/workflows/build/badge.svg"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AI-9WYeX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/rocktimsaikia/generator-github-action/workflows/build/badge.svg"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer" href="https://camo.githubusercontent.com/96c28c558bba227c0f2ad04970a88cb58dd5ae69a0d9150633b9b704248635e1/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f67656e657261746f722d6769746875622d616374696f6e"&gt;&lt;img alt="npm" src="https://camo.githubusercontent.com/96c28c558bba227c0f2ad04970a88cb58dd5ae69a0d9150633b9b704248635e1/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f67656e657261746f722d6769746875622d616374696f6e"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/rocktimsaikia/generator-github-action"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lOdTK0ny--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/RocktimSaikia/generator-github-action/master/.github/frame.png" height="400px"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;h2&gt;
💡 About&lt;/h2&gt;
&lt;p&gt;This is a yeoman generator for the official &lt;a href="https://github.com/actions/javascript-action"&gt;github action template&lt;/a&gt; for javascript provided by the Github team.
&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;h2&gt;
⚡ Installation&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;skip the first step if you already have yeoman installed globally.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="highlight highlight-source-shell js-code-highlight"&gt;
&lt;pre&gt;npm install -g yo
npm install -g generator-github-action&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Then generate your new project:&lt;/p&gt;
&lt;div class="highlight highlight-source-shell js-code-highlight"&gt;
&lt;pre&gt;yo github-action&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
License&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://raw.githubusercontent.com/RocktimSaikia/generator-github-action/master//license"&gt;Apache-2.0&lt;/a&gt; © &lt;a href="https://rocktim.xyz" rel="nofollow"&gt;Rocktim Saikia&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/RocktimSaikia/generator-github-action"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Since the &lt;code&gt;#actionshackathon&lt;/code&gt; is going on, there are going to be lots of forking and templating boilerplates. So I sat down and decided to create a Generator for this specific task so that you don't have to fork boilerplates every time you want to create a new Github Action.&lt;/p&gt;

&lt;p&gt;Here is the Installation process followed by the Usage steps:&lt;/p&gt;
&lt;h2&gt;
  
  
  Installation
&lt;/h2&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; yo
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; generator-github-action
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;If you already have &lt;code&gt;yo&lt;/code&gt; installed globally then skip the first step. Install the &lt;code&gt;generator&lt;/code&gt; only.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Example usage
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yo github-action
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QTKBp6Wi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/abqxcp03rzlrhw0l0fhb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QTKBp6Wi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/abqxcp03rzlrhw0l0fhb.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That will present a prompt asking a few questions about your project name and description etc. After that, It will generate a minimal set up for you to work on a javascript based Github action. &lt;/p&gt;

&lt;p&gt;The generator will also install the bare minimum dependencies too so you don't have to worry about installion. You can just focus on writing your code for the action.&lt;/p&gt;

&lt;h4&gt;
  
  
  That's all 🦄 🦄 🦄
&lt;/h4&gt;

&lt;p&gt;If you want to contribute to the project you can do that too. You can also leave star ⚡ if you find this tool helpful that helps on keeping me motivated to keep creating these types of tools and modules. &lt;/p&gt;

</description>
      <category>showdev</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to host api and frontend sepaparetly while using the same domain ??</title>
      <dc:creator>Rocktim Saikia</dc:creator>
      <pubDate>Sun, 16 Aug 2020 13:35:51 +0000</pubDate>
      <link>https://dev.to/rocktimsaikia/how-to-host-api-and-frontend-sepaparetly-while-using-the-same-domain-3egi</link>
      <guid>https://dev.to/rocktimsaikia/how-to-host-api-and-frontend-sepaparetly-while-using-the-same-domain-3egi</guid>
      <description>&lt;p&gt;I have express API repository which is currently hosted in Heroku along with its documentation site written in &lt;code&gt;ejs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But now I'm planning on separating the docs website with gatsby and moving it into another repo and hosting it on Netlify while the API service still remains in Heroku.&lt;/p&gt;

&lt;p&gt;Here is the end goal :&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="c1"&gt;//example domain: example.com&lt;/span&gt;

&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; 
&lt;span class="c1"&gt;// example.com/ : serves the docs website.(Netlify)&lt;/span&gt;

&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/api&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="c1"&gt;// example.com/api : serves the API services. (Heroku)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Can someone help me with how to implement this in the actual application? I am not very familiar with separating hostings while using the same domain.&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
