<?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: Abhishek Kale</title>
    <description>The latest articles on DEV Community by Abhishek Kale (@overrkill).</description>
    <link>https://dev.to/overrkill</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%2F389054%2Fb0e2681b-f7e2-4794-9eb2-aa3d7309f496.jpg</url>
      <title>DEV Community: Abhishek Kale</title>
      <link>https://dev.to/overrkill</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/overrkill"/>
    <language>en</language>
    <item>
      <title>Automating with Nodejs Part - 1 (Setup)</title>
      <dc:creator>Abhishek Kale</dc:creator>
      <pubDate>Wed, 28 Oct 2020 13:46:18 +0000</pubDate>
      <link>https://dev.to/overrkill/automating-with-nodejs-part-1-setup-26dg</link>
      <guid>https://dev.to/overrkill/automating-with-nodejs-part-1-setup-26dg</guid>
      <description>&lt;p&gt;Table of Content&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Initializing&lt;/li&gt;
&lt;li&gt;writing the script&lt;/li&gt;
&lt;li&gt;
Install globally(on your system😜)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Description  - setting up the environment to write scripts to automate tasks with nodejs and publishing to npm&lt;br&gt;
part I - setup , hello world , testing locally &lt;/p&gt;
&lt;h4&gt;
  
  
  Initializing &lt;a&gt;&lt;/a&gt;
&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;prerequisites&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;nodejs&lt;/li&gt;
&lt;li&gt;npm&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;create a folder for your project&lt;/p&gt;

&lt;p&gt;cd to the folder -&amp;gt; do npm init&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir &lt;/span&gt;npm_script
&lt;span class="nb"&gt;cd&lt;/span&gt; ./npm_script
npm init &lt;span class="nt"&gt;-y&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  writing the script &lt;a&gt;&lt;/a&gt;
&lt;/h4&gt;

&lt;p&gt;create an index.js file(starting point of your script)&lt;/p&gt;

&lt;h5&gt;
  
  
  adding the hashbang!
&lt;/h5&gt;

&lt;p&gt;&lt;code&gt;#!/usr/bin/env node&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;it specifies the the environment the script will run on&lt;/p&gt;

&lt;p&gt;without hashbang&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node ./filename.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;with hashbang&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;./filename.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;at this point your files would look like this&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--jZN6mBVx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/g4z1l0n65b6pk6z238uq.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--jZN6mBVx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/g4z1l0n65b6pk6z238uq.PNG" alt="added hashbang"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;we would add some code to test our script&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="nx"&gt;myAwesomeFunction&lt;/span&gt; &lt;span class="o"&gt;=&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="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello World&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;which would look like &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cZeDb-GC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ag6qgvvbml8d9clqi487.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cZeDb-GC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ag6qgvvbml8d9clqi487.PNG" alt="added hello world"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;now we can test if our code runs&lt;/em&gt;&lt;br&gt;
by just typing&lt;br&gt;
&lt;code&gt;./index.js&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  installing the script globally &lt;a&gt;&lt;/a&gt;
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g  // in your script directory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;now you can access the script anywhere on your system&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;*&lt;em&gt;to be continued&lt;/em&gt; (writing script to organize files, publishing to npm)&lt;/p&gt;

</description>
      <category>node</category>
      <category>automation</category>
      <category>npm</category>
      <category>script</category>
    </item>
    <item>
      <title>Must have apps (Developer Edition)</title>
      <dc:creator>Abhishek Kale</dc:creator>
      <pubDate>Thu, 04 Jun 2020 03:40:24 +0000</pubDate>
      <link>https://dev.to/overrkill/the-developers-paradise-1156</link>
      <guid>https://dev.to/overrkill/the-developers-paradise-1156</guid>
      <description>&lt;ol&gt;
&lt;li&gt;GitHub (ios &amp;amp; android)
There's no need to recall benefits of using git GitHub is the Instagram for Developers.It let's your monitor all your repositories from your phone&lt;/li&gt;
&lt;li&gt;Google Tasks (ios &amp;amp; android)
A simple way to plan your day planning your day ahead of time could not only makes you more productive but also lets you find where majority of your time was spent 
I recommend to use it along with any of your favorite Time tracking app&lt;/li&gt;
&lt;li&gt;Dribble (ios &amp;amp; android)
Its a great place to get ideas for your UI be careful while choosing one
...
Adding more soon&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>developer</category>
      <category>github</category>
      <category>productivity</category>
      <category>webdevlopment</category>
    </item>
  </channel>
</rss>
