{"id":298,"date":"2021-04-03T07:50:17","date_gmt":"2021-04-03T07:50:17","guid":{"rendered":"https:\/\/blog.spike.sh\/2021\/04\/03\/how-to-create-an-npm-package\/"},"modified":"2025-06-06T14:18:04","modified_gmt":"2025-06-06T08:48:04","slug":"how-to-create-an-npm-package","status":"publish","type":"post","link":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/","title":{"rendered":"How to Create an NPM Package"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">As a developer, there is no greater feeling than being able to see our work being used by others. One way you can do that is by creating packages for Node.js and releasing them on NPM, which is the world&#8217;s largest software registry. Some of the top packages on NPM have millions of downloads per week! <\/p>\n\n\n<div class=\"wp-block-image kg-card kg-image-card kg-card-hascaption\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"185\" data-attachment-id=\"889\" data-permalink=\"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/npm-stats\/\" data-orig-file=\"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/npm-stats.png\" data-orig-size=\"377,185\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"npm-stats\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/npm-stats.png\" src=\"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/npm-stats.png\" alt=\"\" class=\"wp-image-889\" srcset=\"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/npm-stats.png 377w, https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/npm-stats-300x147.png 300w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><figcaption class=\"wp-element-caption\">NPM download stats<\/figcaption><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Create your package<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we&#8217;ll create a simple NPM package that says hello to our users. Create a directory for your package and create a new file <em>index.js<\/em> in the directory. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mkdir hi-hello-pkg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To use the package, the users will have to call a function that we expose in the package. We will export a function named <em>hello<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exports.hello = async function hello() {\n    console.log(\"Hello! You look nice today.\");\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To make this into a package, we need a <em>package.json<\/em><strong> <\/strong>file which we can create by calling <em>npm init<\/em><strong> <\/strong>on the package directory. It will ask you a series of questions like package name, description, version etc. that you can answer to create the package.json file. <strong>Pick a unique name for the package, one that has not belong to another package on the npm registry.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n      \"dependencies\": {},\n      \"name\": \"hi-hello\",\n      \"version\": \"1.0.0\",\n      \"description\": \"Just saying hello!\",\n      \"main\": \"index.js\",\n      \"devDependencies\": {},\n      \"scripts\": {\n        \"test\": \"echo \"Error: no test specified\" &amp;&amp; exit 1\"\n      },\n      \"keywords\": &#91;\n        \"hello\",\n        \"hi\"\n      ],\n      \"author\": \"Pru\",\n      \"license\": \"ISC\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After the package.json file is created, your package is technically ready to publish. To make it more user friendly, you should add a <em>README.md<\/em><strong> <\/strong>file to the package directory. This file is in <a href=\"https:\/\/www.markdownguide.org\/\">Markdown<\/a> format and its contents will be displayed by NPM on your package page. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#### Hi Hello!\nA nice NPM package that says Hello to you! \n\n#### Installation\n* Install the **Hi Hello** package for Node.js\n\n        npm install hi-hello\n\n#### Usage\n\n        const hiHello = require('hi-hello');\n        \n        \/\/ Say Hello!\n        hiHello.hello();\n\n#### Output\n        Hello! You look nice today.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Test your package<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before you publish the package to NPM, you should test it locally. We can do this by installing the package from the local directory which contains our package files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ npm install .\/hi-hello-pkg\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now create another file called <em>test.js<\/em><strong> <\/strong>and include your local package and test it. If it works, your package is ready to publish.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const testHello = require('hi-hello');\ntestHello.hello();<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Publish package to NPM<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create an account on <a href=\"https:\/\/www.npmjs.com\/\">NPM<\/a>. Then login to the account from your terminal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ npm login<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After logging in, go to your package directory and publish.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ npm publish<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If everything works, then the package will be published to NPM and you will receive and email from NPM about it. You can go to the package page on NPM page and check it out. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At this point, you should install your package from NPM registry and test that it works correctly. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-begin: markdown--><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ npm install hi-hello<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><!--kg-card-end: markdown--><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update package<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever you want to change the package, you should make sure to update the version in the <strong>package.json <\/strong>file before publishing the package again. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Conclusion<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s it! You have now published your very own package to NPM where millions of other developers can now access it. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a developer, there is no greater feeling than being able to see our work being used by others. One way you can do that is by creating packages for Node.js and releasing them on NPM, which is the world&#8217;s largest software registry. Some of the top packages on NPM have millions of downloads per [&hellip;]<\/p>\n","protected":false},"author":263547074,"featured_media":890,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[97],"tags":[],"class_list":["post-298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create an NPM Package<\/title>\n<meta name=\"description\" content=\"Learn how to create an NPM package\u2014set up your project, write code, test locally, and publish to share with millions of developers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create an NPM Package\" \/>\n<meta property=\"og:description\" content=\"Learn how to create an NPM package\u2014set up your project, write code, test locally, and publish to share with millions of developers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/\" \/>\n<meta property=\"og:site_name\" content=\"Welcome to Spike.\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-03T07:50:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-06T08:48:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Pruthvi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pruthvi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/\"},\"author\":{\"name\":\"Pruthvi\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#\\\/schema\\\/person\\\/2c9fa677c459b8f4fb26f1a02b90b5ec\"},\"headline\":\"How to Create an NPM Package\",\"datePublished\":\"2021-04-03T07:50:17+00:00\",\"dateModified\":\"2025-06-06T08:48:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/\"},\"wordCount\":428,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/NPM-2-1-1.png\",\"articleSection\":[\"Uncategorized\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/\",\"url\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/\",\"name\":\"How to Create an NPM Package\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/NPM-2-1-1.png\",\"datePublished\":\"2021-04-03T07:50:17+00:00\",\"dateModified\":\"2025-06-06T08:48:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#\\\/schema\\\/person\\\/2c9fa677c459b8f4fb26f1a02b90b5ec\"},\"description\":\"Learn how to create an NPM package\u2014set up your project, write code, test locally, and publish to share with millions of developers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/NPM-2-1-1.png\",\"contentUrl\":\"https:\\\/\\\/blog.spike.sh\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/NPM-2-1-1.png\",\"width\":2400,\"height\":960},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/how-to-create-an-npm-package\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.spike.sh\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create an NPM Package\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#website\",\"url\":\"https:\\\/\\\/blog.spike.sh\\\/\",\"name\":\"Welcome to Spike.\",\"description\":\"In this space, our team talks about all things incidents, response, oncall, and share our journey of building Spike.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.spike.sh\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.spike.sh\\\/#\\\/schema\\\/person\\\/2c9fa677c459b8f4fb26f1a02b90b5ec\",\"name\":\"Pruthvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g\",\"caption\":\"Pruthvi\"},\"url\":\"https:\\\/\\\/blog.spike.sh\\\/author\\\/pruthvi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create an NPM Package","description":"Learn how to create an NPM package\u2014set up your project, write code, test locally, and publish to share with millions of developers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/","og_locale":"en_GB","og_type":"article","og_title":"How to Create an NPM Package","og_description":"Learn how to create an NPM package\u2014set up your project, write code, test locally, and publish to share with millions of developers.","og_url":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/","og_site_name":"Welcome to Spike.","article_published_time":"2021-04-03T07:50:17+00:00","article_modified_time":"2025-06-06T08:48:04+00:00","og_image":[{"width":2400,"height":960,"url":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png","type":"image\/png"}],"author":"Pruthvi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pruthvi","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#article","isPartOf":{"@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/"},"author":{"name":"Pruthvi","@id":"https:\/\/blog.spike.sh\/#\/schema\/person\/2c9fa677c459b8f4fb26f1a02b90b5ec"},"headline":"How to Create an NPM Package","datePublished":"2021-04-03T07:50:17+00:00","dateModified":"2025-06-06T08:48:04+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/"},"wordCount":428,"commentCount":0,"image":{"@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png","articleSection":["Uncategorized"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/","url":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/","name":"How to Create an NPM Package","isPartOf":{"@id":"https:\/\/blog.spike.sh\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#primaryimage"},"image":{"@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png","datePublished":"2021-04-03T07:50:17+00:00","dateModified":"2025-06-06T08:48:04+00:00","author":{"@id":"https:\/\/blog.spike.sh\/#\/schema\/person\/2c9fa677c459b8f4fb26f1a02b90b5ec"},"description":"Learn how to create an NPM package\u2014set up your project, write code, test locally, and publish to share with millions of developers.","breadcrumb":{"@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#primaryimage","url":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png","contentUrl":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png","width":2400,"height":960},{"@type":"BreadcrumbList","@id":"https:\/\/blog.spike.sh\/how-to-create-an-npm-package\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.spike.sh\/"},{"@type":"ListItem","position":2,"name":"How to Create an NPM Package"}]},{"@type":"WebSite","@id":"https:\/\/blog.spike.sh\/#website","url":"https:\/\/blog.spike.sh\/","name":"Welcome to Spike.","description":"In this space, our team talks about all things incidents, response, oncall, and share our journey of building Spike.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.spike.sh\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/blog.spike.sh\/#\/schema\/person\/2c9fa677c459b8f4fb26f1a02b90b5ec","name":"Pruthvi","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9476164464b4c9fb3455f2ee4879aad90f1790dce018e71caeaca2cbd548637?s=96&d=robohash&r=g","caption":"Pruthvi"},"url":"https:\/\/blog.spike.sh\/author\/pruthvi\/"}]}},"modified_by":"Sreekar","jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/blog.spike.sh\/wp-content\/uploads\/2021\/04\/NPM-2-1-1.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfMe4Q-4O","_links":{"self":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/users\/263547074"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":2,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":1810,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/posts\/298\/revisions\/1810"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/media\/890"}],"wp:attachment":[{"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.spike.sh\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}