<?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: Harsh Sinha</title>
    <description>The latest articles on DEV Community by Harsh Sinha (@harshsinha17).</description>
    <link>https://dev.to/harshsinha17</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%2F552850%2Faf14a776-f003-48a1-84c5-318e80365706.jpg</url>
      <title>DEV Community: Harsh Sinha</title>
      <link>https://dev.to/harshsinha17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harshsinha17"/>
    <language>en</language>
    <item>
      <title>8 Fun APIs For Your Next Project [ PART-II ]</title>
      <dc:creator>Harsh Sinha</dc:creator>
      <pubDate>Mon, 23 May 2022 18:17:02 +0000</pubDate>
      <link>https://dev.to/harshsinha17/8-fun-apis-for-your-next-project-part-ii--m9h</link>
      <guid>https://dev.to/harshsinha17/8-fun-apis-for-your-next-project-part-ii--m9h</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hello Developers👋&lt;br&gt;
I'm back with another article and also by the way this is the second article in this " APIs" Series so don't forget to check out the first one as well.In this article I'm about to present to you 8 Fun APIs. Without any further ado let's begin with it :) &lt;/p&gt;




&lt;h3&gt;
  
  
  1)&lt;a href="https://funtranslations.com/api/" rel="noopener noreferrer"&gt;Fun Translations&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Translate English into languages such as Minion, Yoda and many more! &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%2Fuploads%2Farticles%2Fqighsazpzyn3d0zy0r1x.jpeg" 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%2Fuploads%2Farticles%2Fqighsazpzyn3d0zy0r1x.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2)&lt;a href="https://pokeapi.co/" rel="noopener noreferrer"&gt;Poke API&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Are you a fan of Pokemon? Well then this API would help you to get info on your favorite pokemons. &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%2Fuploads%2Farticles%2Fz52vfcbkcz54ckp7mtv3.jpeg" 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%2Fuploads%2Farticles%2Fz52vfcbkcz54ckp7mtv3.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3)&lt;a href="https://developer.marvel.com/" rel="noopener noreferrer"&gt;MARVEL Comics API&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Get access to data of 1000s of Marvel comics'. &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%2Fuploads%2Farticles%2F7jfzb7sab5w88ml0i6bd.jpeg" 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%2Fuploads%2Farticles%2F7jfzb7sab5w88ml0i6bd.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4)&lt;a href="https://www.boredapi.com/" rel="noopener noreferrer"&gt;BoredAPI&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Are you bored? No need to be. Just send an API call and it would give you a random task to do :D&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%2Fuploads%2Farticles%2Foa7h7c1ctblt6d7pc5w1.jpeg" 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%2Fuploads%2Farticles%2Foa7h7c1ctblt6d7pc5w1.jpeg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5)Agify
&lt;/h3&gt;

&lt;p&gt;Just make an API call with a name as parameter and it would guess your age, just for fun. &lt;br&gt;
Use this link with your name to get the response&lt;br&gt;
&lt;a href="https://api.agify.io/?name=YOUR_NAME" rel="noopener noreferrer"&gt;https://api.agify.io/?name=YOUR_NAME&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6)&lt;a href="https://github.com/sameerkumar18/geek-joke-api" rel="noopener noreferrer"&gt;Geeky Jokes&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This API lets you fetch a random geeky/programming jokes. &lt;/p&gt;

&lt;h3&gt;
  
  
  7)&lt;a href="https://developers.google.com/youtube/v3" rel="noopener noreferrer"&gt;YouTube API&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This API allows you to do various things with YT videos such as embed them and get their details etc. &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%2Fuploads%2Farticles%2Fpo6cgmnui0g736dw821o.jpg" 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%2Fuploads%2Farticles%2Fpo6cgmnui0g736dw821o.jpg" alt="site image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  8)&lt;a href="https://developers.forem.com/api" rel="noopener noreferrer"&gt;DEV API&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;This is yet another extremely helpful API which you can use to embed your blogs in your website/portfolio and even publish articles. &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%2Fuploads%2Farticles%2Flrajsoymgddm8vmy1yjx.jpg" 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%2Fuploads%2Farticles%2Flrajsoymgddm8vmy1yjx.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So I've presented you a list with 8 Fun APIs that you may use in your next Project. If you found this article helpful, you can react to it and also follow me so that you get notified when I publish my next article. &lt;br&gt;
Thank you(˵ ͡° ͜ʖ ͡°˵)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Code And Publish Your First NPM package🎖</title>
      <dc:creator>Harsh Sinha</dc:creator>
      <pubDate>Sun, 06 Feb 2022 04:14:00 +0000</pubDate>
      <link>https://dev.to/harshsinha17/how-to-code-and-publish-your-first-npm-package-2neg</link>
      <guid>https://dev.to/harshsinha17/how-to-code-and-publish-your-first-npm-package-2neg</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hello Developers&lt;br&gt;
In this Article we would learn how do you Code and publish your first NPM package. &lt;br&gt;
Publishing an NPM package is easy and in this tutorial we would make a very simple package which requires very few lines of Code. &lt;/p&gt;
&lt;h2&gt;
  
  
  What is NPM?
&lt;/h2&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%2Fuploads%2Farticles%2Ff2dlthk3cfechgkgcitq.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%2Fuploads%2Farticles%2Ff2dlthk3cfechgkgcitq.png" alt="logo of npm and node.js"&gt;&lt;/a&gt;&lt;br&gt;
NPM stands for &lt;strong&gt;Node Package Manager&lt;/strong&gt;, as the name suggests it is a package manager, and is also the default package manager for JavaScript runtime environment Node.js.&lt;/p&gt;
&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Node.js and npm installed in your system&lt;/strong&gt;- You can install Node.js and npm(if you haven't already) from &lt;a href="https://nodejs.org/en/download/" rel="noopener noreferrer"&gt;here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Basic knowledge of JavaScript&lt;/strong&gt;- The package we'll make here is simple so you don't need very high knowledge of JavaScript. &lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Basic Terminal Commands&lt;/strong&gt;- I would be using a few basic terminal commands but I will explain the npm and node commands which I would use in the Article. &lt;/li&gt;
&lt;/ul&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A Code editor&lt;/strong&gt;- In this tutorial I would be using VS Code but you can use any editor of your choice. &lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Lets get Started
&lt;/h2&gt;


&lt;h3&gt;
  
  
  Step 1: Create an account on &lt;a href="https://www.npmjs.com/signup" rel="noopener noreferrer"&gt;https://www.npmjs.com/signup&lt;/a&gt;
&lt;/h3&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%2Fuploads%2Farticles%2Fhsjv1p7p3eced89ke46j.jpg" 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%2Fuploads%2Farticles%2Fhsjv1p7p3eced89ke46j.jpg" alt="npmjs login page"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 2: Login to your CLI by your npm account
&lt;/h3&gt;

&lt;p&gt;To do this, simply type this command in the terminal&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And enter the following details:&lt;br&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%2Fuploads%2Farticles%2Fo1um34sl46kk9yauicad.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%2Fuploads%2Farticles%2Fo1um34sl46kk9yauicad.png" alt="npm login"&gt;&lt;/a&gt;&lt;br&gt;
To check if you have successfully logged in, type the following command and it shall print your username:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm whoami
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Setting up the directory
&lt;/h3&gt;

&lt;p&gt;You can accomplish this task by typing these commands onto your terminal/CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mkdir folder_name
$ cd path/to/folder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;mkdir&lt;/code&gt; - mkdir command is used to create a directory or a folder directly from your Terminal. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;cd&lt;/code&gt; - cd command is used to change the current working directory in the terminal. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 4: Package.json
&lt;/h3&gt;

&lt;p&gt;To initialize the package.json file, type this command in the CLI&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And then answer the questions asked, if you want you can skip any question by clicking Enter. &lt;br&gt;&lt;br&gt;
&lt;strong&gt;What is package.json?&lt;/strong&gt;&lt;br&gt;
Package.json is a necessary file which contains information about your project&lt;br&gt;
Such as &lt;code&gt;package name&lt;/code&gt;, &lt;code&gt;version&lt;/code&gt;,&lt;code&gt;author's name&lt;/code&gt; etc. &lt;br&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 5: Let's Code
&lt;/h3&gt;

&lt;p&gt;Now that we have a package.json file, we can get onto coding. &lt;br&gt;
Create an index.js file and write this code into it&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;object&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;add&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;addTwoNumbers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;object&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Code Explanation&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;const object&lt;/strong&gt; - The object &lt;code&gt;object&lt;/code&gt; which is exported to be used by others.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;function addTwoNumbers()&lt;/strong&gt; - This is the function stored in the object which can be used by others, it is marked as 'add' and it simply returns the sum of two numbers &lt;code&gt;a&lt;/code&gt; and &lt;code&gt;b&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;module.exports&lt;/strong&gt; - the object &lt;code&gt;object&lt;/code&gt; is then exported by declaring this.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 6: Time to Publish
&lt;/h3&gt;

&lt;p&gt;To publish your newly made npm package, head over to the terminal and type this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm publish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you get this message:&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%2Fuploads%2Farticles%2Fimri9xw7zxpu5eju86j1.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%2Fuploads%2Farticles%2Fimri9xw7zxpu5eju86j1.png" alt="npm publish success message"&gt;&lt;/a&gt;&lt;br&gt;
Then congratulations! Your NPM package has been successfully published and can be used by anyone :)&lt;br&gt;
The Github Repository link of this package: &lt;a href="https://github.com/HarshSinha17/maths-script" rel="noopener noreferrer"&gt;https://github.com/HarshSinha17/maths-script&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Testing the package
&lt;/h2&gt;

&lt;p&gt;So now that we have made our NPM package, we shall try it, to test the package follow these steps:&lt;/p&gt;
&lt;h3&gt;
  
  
  Create a fresh directory and cd into it
&lt;/h3&gt;

&lt;p&gt;This can now again be done by terminal by the following commands&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mkdir folder_name
$ cd path/to/folder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Initialize the package.json
&lt;/h3&gt;

&lt;p&gt;Type this command on the terminal, but this time with the &lt;code&gt;-y&lt;/code&gt; flag, so that we don't have to answer any questions and a default package.json file will be created.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm init -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Install the Package
&lt;/h3&gt;

&lt;p&gt;To install the package type this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ npm install maths-script
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Here &lt;code&gt;maths-script&lt;/code&gt; is the name of the package)&lt;br&gt;
Now a folder named &lt;code&gt;node_modules&lt;/code&gt; and a file named &lt;code&gt;package-lock.json&lt;/code&gt; must be created in the directory.&lt;/p&gt;
&lt;h3&gt;
  
  
  Lets code
&lt;/h3&gt;

&lt;p&gt;Create a file named &lt;code&gt;app.js&lt;/code&gt; and paste this code in the file&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;maths&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;maths-script&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;maths&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&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;a&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Code Explanation -&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The code is pretty simple, first we are storing the exports of the package in a constant &lt;code&gt;maths&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then we are using the function &lt;code&gt;add&lt;/code&gt; of the NPM package for adding two numbers, 1 and 2, and storing it in variable &lt;code&gt;a&lt;/code&gt;, and then printing the var &lt;code&gt;a&lt;/code&gt; to the console.&lt;br&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Running the file
&lt;/h3&gt;

&lt;p&gt;To run the file, type this command in the Terminal&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;(app.js is the name of our file)&lt;br&gt;
And then you should get the following output-&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%2Fuploads%2Farticles%2F805nrf8g8h7c0i2nzta5.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%2Fuploads%2Farticles%2F805nrf8g8h7c0i2nzta5.png" alt="output of the code"&gt;&lt;/a&gt;&lt;br&gt;
So we see that the output is &lt;code&gt;3&lt;/code&gt;, which means that our NPM package is working!&lt;/p&gt;






&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So in this article we learned how to create an NPM package, hope you found the article helpful and if you face any problem in making your own package, put a comment down below so maybe I can provide any help I can&lt;/p&gt;

&lt;p&gt;Thanks&lt;br&gt;
(˵ ͡° ͜ʖ ͡°˵)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>node</category>
    </item>
    <item>
      <title>25 FREE CSS Tools/Resources That You Should Bookmark</title>
      <dc:creator>Harsh Sinha</dc:creator>
      <pubDate>Sat, 15 Jan 2022 06:54:39 +0000</pubDate>
      <link>https://dev.to/harshsinha17/css-resources-every-dev-should-bookmark-2a6h</link>
      <guid>https://dev.to/harshsinha17/css-resources-every-dev-should-bookmark-2a6h</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Hello Developers :) &lt;/p&gt;

&lt;p&gt;I've created a list of 25 Free tools and resources which you can use in your next projects to make them more mesmerizing :) &lt;/p&gt;

&lt;p&gt;So without any further ado, let's begin&lt;/p&gt;

&lt;h2&gt;
  
  
  Sites to learn from:
&lt;/h2&gt;

&lt;p&gt;Websites are one of the best places to learn CSS, there are numorous websites where you can learn CSS from, some of them are -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.freecodecamp.org/"&gt;https://www.freecodecamp.org/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.w3schools.com/"&gt;https://www.w3schools.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.sololearn.com/"&gt;https://www.sololearn.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Icons
&lt;/h2&gt;

&lt;p&gt;We can add Icons to our webpage to make them look better, some of the libraries from where you can get many icons are -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://fontawesome.com/"&gt;https://fontawesome.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://icons8.com/icons/set/css"&gt;https://icons8.com/icons/set/css&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://icons.getbootstrap.com/"&gt;https://icons.getbootstrap.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://css.gg/"&gt;https://css.gg/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://ikonate.com/"&gt;https://ikonate.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Gradients
&lt;/h2&gt;

&lt;p&gt;Gradients are a progressive transition between two or more colours, the transition between the colours is usually smooth. In CSS there are 3 types of gradients: Linear gradient, Radial Gradient and Conical gradient. &lt;br&gt;
Here are some tools which can be used to create gradients-&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://mycolor.space/gradient"&gt;https://mycolor.space/gradient&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.css-gradient.com/"&gt;https://www.css-gradient.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://learnui.design/tools/gradient-generator.html"&gt;https://learnui.design/tools/gradient-generator.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://cssgradient.io/"&gt;https://cssgradient.io/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Grid design:
&lt;/h2&gt;

&lt;p&gt;The Grid layout is one of the fundamental properties of responsive web development. &lt;br&gt;
Some tools which can be used to design grids are -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://griddy.io/"&gt;https://griddy.io/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://angrytools.com/css-grid/"&gt;https://angrytools.com/css-grid/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://grid.layoutit.com/"&gt;https://grid.layoutit.com/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Animation maker:
&lt;/h2&gt;

&lt;p&gt;With CSS animations, we can animate HTML elements' transition without using JavaScript in any way. &lt;br&gt;
Some tools which can be used to create animations are -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://animista.net/"&gt;https://animista.net/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.toptal.com/developers/css3maker/css3-animation.html"&gt;https://www.toptal.com/developers/css3maker/css3-animation.html&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://webcode.tools/generators/css/keyframe-animation"&gt;https://webcode.tools/generators/css/keyframe-animation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Colour pallets:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://mybrandnewlogo.com/color-palette-generator"&gt;https://mybrandnewlogo.com/color-palette-generator&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://color.adobe.com/create/color-wheel"&gt;https://color.adobe.com/create/color-wheel&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://mycolor.space/"&gt;https://mycolor.space/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Box-Shadow:
&lt;/h2&gt;

&lt;p&gt;The Box-shadow CSS property is used to add a shadow effect on an element's frame, giving it a floating kind of effect. &lt;br&gt;
Some tools which can be used to create box shadows are -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://css3gen.com/box-shadow/"&gt;https://css3gen.com/box-shadow/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://webcode.tools/generators/css/drop-shadow"&gt;https://webcode.tools/generators/css/drop-shadow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.cssmatic.com/box-shadow"&gt;https://www.cssmatic.com/box-shadow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://html-css-js.com/css/generator/box-shadow/"&gt;https://html-css-js.com/css/generator/box-shadow/&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So I presented a list of various tools and websites which can help you make better web design. &lt;/p&gt;

&lt;p&gt;I hope that it helped you. Follow me so that you get notified when I publish my next article, also react to this article if you found it useful. &lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
(˵ ͡° ͜ʖ ͡°˵)&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>html</category>
      <category>programming</category>
    </item>
    <item>
      <title>10 Useful APIs for Your Next Project</title>
      <dc:creator>Harsh Sinha</dc:creator>
      <pubDate>Mon, 25 Oct 2021 11:45:09 +0000</pubDate>
      <link>https://dev.to/harshsinha17/10-useful-apis-for-your-next-project-1nog</link>
      <guid>https://dev.to/harshsinha17/10-useful-apis-for-your-next-project-1nog</guid>
      <description>&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%2Fuploads%2Farticles%2Fbzp2mlkujvfkoomcrqlm.jpg" 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%2Fuploads%2Farticles%2Fbzp2mlkujvfkoomcrqlm.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What is an API?
&lt;/h1&gt;

&lt;p&gt;An API or application Programming Interface is a set of functions that allows applications to access data and interact with external software components,or operating systems. To simplify, an API delivers a user response to a system and sends the system's response back to a user.&lt;/p&gt;




&lt;p&gt;Here is a list of 10 useful APIs that you might want to use in your next project. &lt;/p&gt;

&lt;h1&gt;
  
  
  1)&lt;a href="https://api.nasa.gov/" rel="noopener noreferrer"&gt;NASA APIs&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;The objective of these APIs is to make NASA data, including imagery, eminently accessible to application developers.&lt;/p&gt;

&lt;p&gt;These APIs Include:&lt;/p&gt;

&lt;p&gt;i)APOD: Astronomical Picture Of The Day&lt;/p&gt;

&lt;p&gt;ii)Insight: Mars Weather Service API&lt;/p&gt;

&lt;p&gt;iii)Mars Rover Photos: Image data gathered by NASA's Curiosity, Opportunity, and Spirit rovers on Mars. &lt;/p&gt;

&lt;p&gt;And more of them&lt;/p&gt;

&lt;h1&gt;
  
  
  2)&lt;a href="https://www.programmableweb.com/api/random-useless-facts" rel="noopener noreferrer"&gt;Random Fact&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Get Random Facts! &lt;/p&gt;

&lt;h1&gt;
  
  
  3)&lt;a href="https://developers.giphy.com/" rel="noopener noreferrer"&gt;GIPHY API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;GIPHY API helps you integrate the world's largest GIF library, customize a suite of powerful features, and boost engagement with just a few lines of code.&lt;/p&gt;

&lt;h1&gt;
  
  
  4)&lt;a href="https://openweathermap.org/current" rel="noopener noreferrer"&gt;OpenWeatherMap API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Access current weather data for any location on Earth including over 200,000 cities! The API collects and processes weather data from different sources such as global and local weather models, satellites, radars and a vast network of weather stations. Data is available in JSON, XML, or HTML format&lt;/p&gt;

&lt;h1&gt;
  
  
  5)&lt;a href="https://dev.bitly.com/" rel="noopener noreferrer"&gt;BitLy API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Bitly is the most widely trusted link management platform in the world. By using the Bitly API, you will exercise the full power of your links through automated link customization, mobile deep linking, and click analytics.&lt;/p&gt;

&lt;h1&gt;
  
  
  6)&lt;a href="https://sunrise-sunset.org/api" rel="noopener noreferrer"&gt;Sunrise - Sunset API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;It is a very simple REST api, you only have to do a GET request to get sunset and sunrise times for a given latitude and longitude.&lt;/p&gt;

&lt;h1&gt;
  
  
  7)&lt;a href="https://github.com/r-spacex/SpaceX-API" rel="noopener noreferrer"&gt;SpaceX API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;Open Source REST API for launch, rocket, core, capsule, starlink, launchpad, and landing pad data.&lt;/p&gt;

&lt;h1&gt;
  
  
  8)&lt;a href="http://open-notify.org/Open-Notify-API/ISS-Location-Now/" rel="noopener noreferrer"&gt;International Space Station Location API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;This is a simple api to return the current location of the ISS. It returns the current latitude and longitude of the space station with a unix timestamp for the time the location was valid. &lt;/p&gt;

&lt;h1&gt;
  
  
  9)&lt;a href="https://developers.google.com/fonts/docs/developer_api" rel="noopener noreferrer"&gt;Google Fonts API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;About the API:&lt;br&gt;
The Developer API gives access to the metadata for all families served by Google Fonts. It allows apps to query Google Fonts for the available font families. The REST API supplies data in the JSON format that includes the styles and scripts (called subsets in Google Fonts) in each family. The API can sort the list of families alphabetically, by date added, by number of styles, by trend, or by popularity.&lt;/p&gt;

&lt;h1&gt;
  
  
  10)&lt;a href="https://developer.marvel.com/" rel="noopener noreferrer"&gt;Marvel Comics API&lt;/a&gt;
&lt;/h1&gt;

&lt;p&gt;If you are a Marvel Comics fan you might want to check out this API! &lt;br&gt;
Anyone with an API key can access the vast library of 1000+ Marvel Comics' data, from what's coming, to 70 years ago! &lt;/p&gt;




&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;I hope this article was helpful for you&lt;br&gt;
(˵ ͡° ͜ʖ ͡°˵)&lt;br&gt;
Also this was my first &lt;br&gt;
post here on dev.to&lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
( ͡ ͜ʖ ͡ )&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>api</category>
      <category>developers</category>
    </item>
  </channel>
</rss>
