<?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: Pranu Pranav</title>
    <description>The latest articles on DEV Community by Pranu Pranav (@pranupranav97).</description>
    <link>https://dev.to/pranupranav97</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%2F526907%2Fd08060f6-8e49-421a-a729-85e4575f24e9.png</url>
      <title>DEV Community: Pranu Pranav</title>
      <link>https://dev.to/pranupranav97</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pranupranav97"/>
    <language>en</language>
    <item>
      <title>How to use Private Git Repo as an NPM Package?</title>
      <dc:creator>Pranu Pranav</dc:creator>
      <pubDate>Wed, 16 Feb 2022 06:43:07 +0000</pubDate>
      <link>https://dev.to/pranupranav97/how-to-use-private-git-repo-as-an-npm-package-3nn7</link>
      <guid>https://dev.to/pranupranav97/how-to-use-private-git-repo-as-an-npm-package-3nn7</guid>
      <description>&lt;p&gt;History in short: I was about to build a project in MERN stack. The architecture I chose was micro-service. I had to put some shared code in shared package. I looked onto npmjs.com which asks for money to publish private packages.&lt;/p&gt;

&lt;p&gt;I taught of using private git repository as npm package. Here is the guide to use a private package as npm package.&lt;/p&gt;

&lt;p&gt;Create a private git repository. And push your code. Optional : Add.npmignore. My shared code was built using typescript and I didnt want those ts files in the package.&lt;/p&gt;

&lt;p&gt;Go to your repository and copy the repo link as http. (ssh didn't worked for me.). Then come back to your project and run &lt;br&gt;
&lt;code&gt;npm install repo_link&lt;/code&gt;&lt;br&gt;
Example: &lt;code&gt;npm install https://github.com/expressjs/express.git&lt;/code&gt;&lt;br&gt;
If you want separate branch as package then install the package like: &lt;code&gt;npm install https://github.com/expressjs/express.git#4.x&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You can also use specific commit too:&lt;br&gt;
&lt;code&gt;npm install https://github.com/expressjs/express.git#commit_id&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Whenever you push some code to that specific branch then just upgrade the package using &lt;code&gt;npm upgrade repo_link&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So I found this free real estate. Enjoy Devoloping 💻.&lt;/p&gt;

</description>
      <category>node</category>
      <category>package</category>
      <category>javascript</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
