

{"id":103585,"date":"2021-11-29T09:00:08","date_gmt":"2021-11-29T03:30:08","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=103585"},"modified":"2021-11-29T10:33:08","modified_gmt":"2021-11-29T05:03:08","slug":"nodejs-utility-module","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/","title":{"rendered":"Nodejs Utility Module"},"content":{"rendered":"<p>In this article we will be discussing the Nodejs utility module in detail with code and examples.<\/p>\n<h3>Nodejs Utility Modules<\/h3>\n<h4>1. OS Module in Nodejs<\/h4>\n<p>It is a built-in utility module in nodejs. To include it in our file we use the require() function. This module is used to get information about the operating system where the code is being executed.<\/p>\n<h5>Methods of OS Module:<\/h5>\n<ul>\n<li>os.tmpdir():it will return the operating system&#8217;s default directory for temp files.<\/li>\n<li>os.hostname():it will return the hostname of the operating system.<\/li>\n<li>os.type():it will return the operating system name.<\/li>\n<li>os.platform():it will return the operating system platform.<\/li>\n<li>os.release():it will return the operating system release.<\/li>\n<li>os.uptime():it will return the system uptime in seconds.<\/li>\n<\/ul>\n<h4>Properties of OS Module:<\/h4>\n<ul>\n<li>os.EOL:It is a constant defining the End-of-line marker for the os.<\/li>\n<\/ul>\n<h4>Code for os module:<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const os = require(\"os\");\r\nconsole.log('Operating System type : ' + os.type());\r\nconsole.log('Operating System platform : ' + os.platform());\r\nconsole.log('Operating System total memory : ' + os.totalmem() + \" bytes.\");<\/pre>\n<p><strong>Output<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-os-module.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-103956\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-os-module.webp\" alt=\"nodejs os module\" width=\"1366\" height=\"705\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-os-module.webp 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-os-module-768x396.webp 768w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>2. Path module in Nodejs<\/h3>\n<p>This module is used to get the file paths. To include it in our file we use the require() function.<\/p>\n<h4>Methods of Path Module:<\/h4>\n<ul>\n<li>path.join([path1][, path2][, &#8230;]):It will Join all the arguments together and normalize the resulting path.<\/li>\n<li>path.resolve([from &#8230;], to):It will resolve to an absolute path.<\/li>\n<li>path.dirname(p):It will return the directory name of a path.<\/li>\n<li>path.parse(pathString):It will return an object from a path string.<\/li>\n<li>path.isAbsolute(path):it will determine whether the path is an absolute path.<\/li>\n<\/ul>\n<h4>Properties of Path Modules:<\/h4>\n<ul>\n<li>path.sep:The platform-specific file separator. &#8216;\\\\&#8217; or &#8216;\/&#8217;.<\/li>\n<li>path.delimiter:The platform-specific path delimiter, ; or &#8216;:&#8217;.<\/li>\n<\/ul>\n<h4>Code for path modules:<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const path = require('path');\r\nconsole.log('resolve:' + path.resolve('paths.js'));\r\nconsole.log('File extension:' + path.extname('paths.js'));<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-path-module.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-103957\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-path-module.webp\" alt=\"nodejs path module\" width=\"1366\" height=\"705\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-path-module.webp 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-path-module-768x396.webp 768w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h4>3. DNS module in Nodejs<\/h4>\n<p>This module gives us information regarding the network types.To include it in our file we use the require() function.<\/p>\n<h5>Methods of DNS Module:<\/h5>\n<ul>\n<li>dns.lookup(hostname[, options], callback): It will resolve a hostname into IPv4 or IPv6 record<\/li>\n<li>dns.lookupService(address, port, callback): It will resolve the given address and port into a hostname and service using getnameinfo.<\/li>\n<li>dns.resolve(hostname[, rrtype], callback): It will resolve a hostname into an array of the record types specified by rrtype.<\/li>\n<li>dns.reverse(ip, callback): It will reverse resolve the ip address to an array of hostnames.<\/li>\n<li>dns.getServers(): It will resolve an array of IP addresses as strings that are currently being used for resolution.<\/li>\n<\/ul>\n<h5>Code for Dns module:<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const dns = require('dns');\r\ndns.lookup(\"www.data-flair.training\", (err, address, family) =&gt; {\r\nconsole.log('Address of %s is %j family: IPv%s', 'www.data-flair.training\/', address, family);\r\n});<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-dns-module.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-103958\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-dns-module.webp\" alt=\"nodejs dns module\" width=\"1366\" height=\"705\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-dns-module.webp 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-dns-module-768x396.webp 768w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h4>4. Net module in Nodejs<\/h4>\n<p>It is used for the creation of servers and clients. To include it in our file we use the require() function.<\/p>\n<h5>Methods of net Module:<\/h5>\n<ul>\n<li>net.createServer([options][, connectionListener]): it will create a new TCP server.<\/li>\n<li>net.connect(options[, connectionListener]): it will return a new &#8216;net.Socket&#8217; and connect to the supplied address and port.<\/li>\n<li>net.createConnection(options[, connectionListener]): it will return a new<\/li>\n<li>&#8216;net.Socket&#8217; and connect to the supplied address and port.<\/li>\n<li>net.connect(port[, host][, connectListener]): it will create a TCP connection to the port on host.<\/li>\n<li>net.createConnection(port[, host][, connectListener]): it will create a TCP connection to port on host.<\/li>\n<li>net.isIP(input):Tests if the input is an IP address..<\/li>\n<\/ul>\n<h5>Code for net module:<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const net = require('net');\r\nconst server = net.createServer(function (connection) {\r\nconsole.log('client connection completed'); connection.on('end', function () {\r\nconsole.log('client has been disconnected');\r\n});\r\nconnection.write('Welcome to DataFlair\\n'); connection.pipe(connection);\r\n});\r\n\r\nserver.listen(3000, function () {\r\nconsole.log('server listening');\r\n});\r\nconst client = net.connect(3000, function () {\r\nconsole.log('Client Connected');\r\nclient.write('DataFlair\\r\\n');\r\n});\r\nclient.on('data', function (data) {\r\nconsole.log(data.toString());\r\nclient.end();\r\n});\r\nclient.on('end', function () {\r\nconsole.log('Server Disconnected');\r\n});<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-net-module.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-103959\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-net-module.webp\" alt=\"nodejs net module\" width=\"1366\" height=\"705\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-net-module.webp 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/11\/nodejs-net-module-768x396.webp 768w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h4>5. Domain Module in Nodejs<\/h4>\n<p>It is used to intercept the errors which are not handled. It can be handled using internal binding or external binding.<\/p>\n<h5>Methods of Domain Module:<\/h5>\n<ul>\n<li>domain.add(emitter): it will explicitly add an emitter to the domain.<\/li>\n<li>domain.remove(emitter):It will remove domain handling from the specified emitter.<\/li>\n<li>domain.bind(callback): When the returned function is called, any errors that are thrown will be routed to the domain&#8217;s error event.<\/li>\n<li>domain.exit(): It exits the current domain<\/li>\n<li>domain.dispose(): the domain will no longer be used by callbacks<\/li>\n<\/ul>\n<h5>Properties of Domain Module:<\/h5>\n<ul>\n<li>Domain.members: It is an array of timers and event emitters that have been added to the domain.<\/li>\n<\/ul>\n<h5>Code for domain Module:<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">let EventEmitter = require(\"events\").EventEmitter;\r\nlet domain = require(\"domain\");\r\nlet emitter1 = new EventEmitter();\r\n\r\nlet domain1 = domain.create();\r\n\r\ndomain1.on('error', function (err) {\r\nconsole.log(\"domain1 handled this error (\" + err.message + \")\");\r\n});\r\ndomain1.add(emitter1);\r\n\r\nemitter1.on('error', function (err) {\r\nconsole.log(\"event listener handled this error (\" + err.message + \")\");\r\n});\r\nemitter1.emit('error', new Error('It will be handled by listener'));\r\nemitter1.removeAllListeners('error');\r\nemitter1.emit('error', new Error('It will be handled by domain1'));\r\nvar domain2 = domain.create();\r\ndomain2.on('error', function (err) {\r\nconsole.log(\"domain2 handled this error (\" + err.message + \")\");\r\n});\r\ndomain2.run(function () {\r\nlet emitter2 = new EventEmitter();\r\nemitter2.emit('error', new Error('It will be handled by domain2'));\r\n});\r\ndomain1.remove(emitter1);\r\nemitter1.emit('error', new Error('Converted to exception. Program will crash!'));<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">event listener handled this error (It will be handled by listener)<br \/>\ndomain1 handled this error (It will be handled by domain1)<br \/>\ndomain2 handled this error (It will be handled by domain2)<br \/>\nnode:events:371<br \/>\nthrow er; \/\/ Unhandled &#8216;error&#8217; event<br \/>\n^Error: Converted to exception. Program will crash!<br \/>\n!<\/div>\n<h3>Util properties and Methods:<\/h3>\n<ul>\n<li>debuglog():it will write debug messages<\/li>\n<li>deprecate():it will mark the specified function as deprecated<\/li>\n<li>format():it will format the string, using the specified arguments<\/li>\n<li>inherits():it will inherit methods from one function to another<\/li>\n<li>inspect():it will inspect the object and return it as string<\/li>\n<\/ul>\n<h3>Summary:<\/h3>\n<p>In this article, we have thoroughly discussed the various utility modules in node js. For other related topics check the DataFlair website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we will be discussing the Nodejs utility module in detail with code and examples. Nodejs Utility Modules 1. OS Module in Nodejs It is a built-in utility module in nodejs. To&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":103954,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25259],"tags":[25785,25788,25787,25784,25786],"class_list":["post-103585","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-node-js-tutorials","tag-dns-module-in-nodejs","tag-domain-module-in-nodejs","tag-net-module-in-nodejs","tag-nodejs-utility-module","tag-path-module-in-nodejs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Nodejs Utility Module - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about Nodejs Utility Modules like DNS Module, Domain Module, Net Module, Path Module etc. See their properties and methods.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nodejs Utility Module - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about Nodejs Utility Modules like DNS Module, Domain Module, Net Module, Path Module etc. See their properties and methods.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-29T03:30:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-29T05:03:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/10\/nodejs-utility-module.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nodejs Utility Module - DataFlair","description":"Learn about Nodejs Utility Modules like DNS Module, Domain Module, Net Module, Path Module etc. See their properties and methods.","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:\/\/data-flair.training\/blogs\/nodejs-utility-module\/","og_locale":"en_US","og_type":"article","og_title":"Nodejs Utility Module - DataFlair","og_description":"Learn about Nodejs Utility Modules like DNS Module, Domain Module, Net Module, Path Module etc. See their properties and methods.","og_url":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-11-29T03:30:08+00:00","article_modified_time":"2021-11-29T05:03:08+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/10\/nodejs-utility-module.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9"},"headline":"Nodejs Utility Module","datePublished":"2021-11-29T03:30:08+00:00","dateModified":"2021-11-29T05:03:08+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/"},"wordCount":753,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/10\/nodejs-utility-module.webp","keywords":["DNS Module in Nodejs","Domain Module in Nodejs","Net Module in Nodejs","Nodejs Utility Module","Path Module in Nodejs"],"articleSection":["Node Js Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/","url":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/","name":"Nodejs Utility Module - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/10\/nodejs-utility-module.webp","datePublished":"2021-11-29T03:30:08+00:00","dateModified":"2021-11-29T05:03:08+00:00","description":"Learn about Nodejs Utility Modules like DNS Module, Domain Module, Net Module, Path Module etc. See their properties and methods.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/10\/nodejs-utility-module.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/10\/nodejs-utility-module.webp","width":1200,"height":628,"caption":"nodejs utility module"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/nodejs-utility-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Node Js Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/node-js-tutorials\/"},{"@type":"ListItem","position":3,"name":"Nodejs Utility Module"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team is a group of passionate educators and industry experts dedicated to providing high-quality online learning resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With years of experience in the field, the team aims to simplify complex topics and help learners advance their careers. At DataFlair, we believe in empowering students and professionals with the knowledge and skills needed to thrive in today\u2019s fast-paced tech industry. Follow us for Free courses, expert insights, tutorials, and practical tips to boost your learning journey.","url":"https:\/\/data-flair.training\/blogs\/author\/datafbdad\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/103585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=103585"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/103585\/revisions"}],"predecessor-version":[{"id":104460,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/103585\/revisions\/104460"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/103954"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=103585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=103585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=103585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}