{"id":42,"date":"2019-09-16T19:50:10","date_gmt":"2019-09-16T19:50:10","guid":{"rendered":"https:\/\/www.kindsonthegenius.com\/nodejs\/?p=42"},"modified":"2019-09-22T07:04:25","modified_gmt":"2019-09-22T07:04:25","slug":"05-node-js-package-manager","status":"publish","type":"post","link":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/","title":{"rendered":"Node.js \u2013 Package Manager"},"content":{"rendered":"<p>As a Node.js developer, you&#8217;ll need several tools in addition to Node.js. This is especially true when you need to develop front-end components.<\/p>\n<p>These tools are known as packages.<\/p>\n<p>You use Node Package Manager (NPM)\u00a0 to install and manage this packages in a useful manner. In addition to providing for installation of packages, NPM also provides a useful interface to work with these packages.<\/p>\n<p>The two thing NPM provides are:<\/p>\n<ul>\n<li>Online package repositories<\/li>\n<li>Command-line utility<\/li>\n<\/ul>\n<p>We would now examine the basics of NPM. I would take you through how to install packages in local and global mode. Also, you will learn how to install, delete and update a package based on version. Then there&#8217;s something called package.json which is used to manage dependencies. You&#8217;ll learn that too.<\/p>\n<p>Feel free to watch the video lesson as well if you want.<\/p>\n<p>&nbsp;<\/p>\n<p>First, you may have to check if NPM is already installed. To do that, use the command:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm --version\r\n2.8.1\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>If you see the version number as shown above, then node.js is installed. But if not, then you need to install it using the command below:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ sudo npm install npm -g\r\n<\/pre>\n<p>After installation, you may also have to update it to the latest version. To do that, use the command below.<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">sudo npm install npm<span style=\"color: #996633;\">@latest<\/span> -g\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Installing Packages with NPM<\/strong><\/p>\n<p>To install a module\/package, type the command below, with the name of the module<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm install &lt;Module_Name&gt;\r\n<\/pre>\n<p>For example, we want to install a module called Uglify (a JavaScript based tool used for minification), you use the command:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm install uglify-js\r\n<\/pre>\n<p>Then to use this module in your program, you also have to write this code:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">var<\/span> uglify<span style=\"color: #333333;\">=<\/span> require(<span style=\"background-color: #fff0f0;\">'uglify-js'<\/span>);\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Global and Local Mode<\/strong><\/p>\n<p>Packages are installed in Local Mode by default. This means that the package is installed in the directory that exists where Node.js is present. The directory is called node_modules. So to use a local package, we must use the require() method.<\/p>\n<p>Also, you can use the ls command to view all the locally installed modules.<\/p>\n<p>On the contrary, Global packages are placed in the system directory. They can be used in the command-line interface(CLI) but not importable using the require() function in Node. To install a package in global mode, use the switch &#8211;global or -g.<\/p>\n<p>For example, the previous package can be installed in global mode like this:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm install uglify-js --global\r\n<\/pre>\n<p>Now, to list the modules available globally, use the command:<\/p>\n<p><!-- HTML generated using hilite.me --><\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm ls -g\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Using package.json<\/strong><\/p>\n<p>package.json file is used to define the properties of a package. It is available in the root directory of any Node application.<\/p>\n<p><strong>Exercise<\/strong>: Open a package.json file and view the content<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Properties of Package.json<\/strong><\/p>\n<ul class=\"list\">\n<li><b>name<\/b> \u2212 the name of the package<\/li>\n<li><b>version<\/b> \u2212 the version of the package<\/li>\n<li><b>description<\/b> \u2212 the description of the package<\/li>\n<li><b>homepage<\/b> \u2212 the homepage of the package<\/li>\n<li><b>author<\/b> \u2212 the author of the package<\/li>\n<li><b>contributors<\/b> \u2212 the names of the contributors to the package<\/li>\n<li><b>dependencies<\/b> \u2212 a list of dependencies.The dependencies mentioned here are installed by default in the node_module folder of the package.<\/li>\n<li><b>repository<\/b> \u2212 a repository type and URL of the package<\/li>\n<li><b>main<\/b> \u2212 entry point to the package<\/li>\n<li><b>keywords<\/b> \u2212 set of keywords<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>To Uninstall a Module<\/strong>, use the command below:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm uninstall uglify-js\r\n<\/pre>\n<p>Once a module is uninstalled, then you can check by examining the content of the node_modules directory using the ls command<\/p>\n<p>&nbsp;<\/p>\n<p><strong>To Update a Module:<\/strong><\/p>\n<p>When a module is updates, the version of the dependencies is upateded to the latest version. The command below updates a module:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm update uglify-js\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>To Search for a Module<\/strong>, use the command:<\/p>\n<pre style=\"margin: 0; line-height: 125%;\">$ npm search uglify-js\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Creating a Module<\/strong><\/p>\n<p>This means that you need to generate a package.json file. This you can also do using NPM. The command below does it<\/p>\n<p>$ npm init<\/p>\n<p>Then follow the instructions.<\/p>\n<p>At the end, you will then execute:<\/p>\n<p>$ npm publish<\/p>\n<p>to finally publish the module<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a Node.js developer, you&#8217;ll need several tools in addition to Node.js. This is especially true when you need to develop front-end components. These tools &hellip; <\/p>\n","protected":false},"author":1,"featured_media":44,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[4,3,5],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js-tutorials","category-uncategorized","tag-node-package-manager","tag-npm","tag-package-json"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Node.js \u2013 Package Manager - Node.js Tutorials<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js \u2013 Package Manager - Node.js Tutorials\" \/>\n<meta property=\"og:description\" content=\"As a Node.js developer, you&#8217;ll need several tools in addition to Node.js. This is especially true when you need to develop front-end components. These tools &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Node.js Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-16T19:50:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-22T07:04:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/09\/Node-package-Manager.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"879\" \/>\n\t<meta property=\"og:image:height\" content=\"216\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. 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:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\"},\"headline\":\"Node.js \u2013 Package Manager\",\"datePublished\":\"2019-09-16T19:50:10+00:00\",\"dateModified\":\"2019-09-22T07:04:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/\"},\"wordCount\":635,\"commentCount\":3,\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/09\\\/Node-package-Manager.jpg\",\"keywords\":[\"Node Package Manager\",\"NPM\",\"Package.json\"],\"articleSection\":[\"Node.js Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/\",\"name\":\"Node.js \u2013 Package Manager - Node.js Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/09\\\/Node-package-Manager.jpg\",\"datePublished\":\"2019-09-16T19:50:10+00:00\",\"dateModified\":\"2019-09-22T07:04:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/09\\\/Node-package-Manager.jpg\",\"contentUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2019\\\/09\\\/Node-package-Manager.jpg\",\"width\":879,\"height\":216,\"caption\":\"Node package Manager\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/05-node-js-package-manager\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node.js \u2013 Package Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#website\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/\",\"name\":\"Node.js Tutorials\",\"description\":\"Best Node.js Tutorials\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/#\\\/schema\\\/person\\\/7f8fc5792578d2ff54003fcebe6c46b5\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/nodejs\\\/author\\\/kindsonthegenius-3\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Node.js \u2013 Package Manager - Node.js Tutorials","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:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/","og_locale":"en_US","og_type":"article","og_title":"Node.js \u2013 Package Manager - Node.js Tutorials","og_description":"As a Node.js developer, you&#8217;ll need several tools in addition to Node.js. This is especially true when you need to develop front-end components. These tools &hellip;","og_url":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/","og_site_name":"Node.js Tutorials","article_published_time":"2019-09-16T19:50:10+00:00","article_modified_time":"2019-09-22T07:04:25+00:00","og_image":[{"width":879,"height":216,"url":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/09\/Node-package-Manager.jpg","type":"image\/jpeg"}],"author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#article","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5"},"headline":"Node.js \u2013 Package Manager","datePublished":"2019-09-16T19:50:10+00:00","dateModified":"2019-09-22T07:04:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/"},"wordCount":635,"commentCount":3,"image":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/09\/Node-package-Manager.jpg","keywords":["Node Package Manager","NPM","Package.json"],"articleSection":["Node.js Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/","name":"Node.js \u2013 Package Manager - Node.js Tutorials","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#primaryimage"},"image":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/09\/Node-package-Manager.jpg","datePublished":"2019-09-16T19:50:10+00:00","dateModified":"2019-09-22T07:04:25+00:00","author":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5"},"breadcrumb":{"@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#primaryimage","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/09\/Node-package-Manager.jpg","contentUrl":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-content\/uploads\/sites\/5\/2019\/09\/Node-package-Manager.jpg","width":879,"height":216,"caption":"Node package Manager"},{"@type":"BreadcrumbList","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/05-node-js-package-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kindsonthegenius.com\/nodejs\/"},{"@type":"ListItem","position":2,"name":"Node.js \u2013 Package Manager"}]},{"@type":"WebSite","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#website","url":"https:\/\/www.kindsonthegenius.com\/nodejs\/","name":"Node.js Tutorials","description":"Best Node.js Tutorials","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kindsonthegenius.com\/nodejs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.kindsonthegenius.com\/nodejs\/#\/schema\/person\/7f8fc5792578d2ff54003fcebe6c46b5","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9d710de456c3d85e5614c3a6992fa3d527425e2ab32b8bd5d85bfbaa235004b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/www.kindsonthegenius.com\/nodejs\/author\/kindsonthegenius-3\/"}]}},"_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":2,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/posts\/42\/revisions\/45"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media\/44"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/nodejs\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}