{"id":200,"date":"2020-04-20T21:42:00","date_gmt":"2020-04-20T21:42:00","guid":{"rendered":""},"modified":"2024-09-13T15:04:52","modified_gmt":"2024-09-13T15:04:52","slug":"javascript-tutorial-series-modules","status":"publish","type":"post","link":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/","title":{"rendered":"JavaScript Tutorial Series &#8211; Modules"},"content":{"rendered":"<p>\nIn JavaScript es6, modules provide the ability to use variables, methods and classes in another JavaScript file.<\/p>\n<p>The following is an example to export a function from a JavaScript file for use in another JavaScript file:<\/p>\n<pre><code>export function printSomething(value) {\n  console.log(value)\n}\n<\/code><\/pre>\n<p>\nThe function is exported by including the export keyword. It could also export the function like this:<\/p>\n<pre><code>function printSomething(value) {\n  console.log(value)\n}\n\nexport {printSomething};\n<\/code><\/pre>\n<p>\nExporting multiple items would be comma separated:<\/p>\n<p>printExample.js:<\/p>\n<pre><code>const season = 'Spring'\n\nfunction printSomething(value) {\n  console.log(value)\n}\n\nexport {season, printSomething};\n<\/code><\/pre>\n<p>To use an exported item in another file, add an import as follows:<\/p>\n<p>home.js:<\/p>\n<pre><code>import printExample from '.\/printExample.js';\n\n(function() {\n\n  printExample.printSomething(\"abc\");\n\n})();\n<\/code><\/pre>\n<p>The name after the import keyword is the name of the class, function or variable being exported from the .js file.<\/p>\n<p>\nAn export can also be renamed when importing it using an alias:<\/p>\n<p>home.js:<\/p>\n<pre><code>import printExample as pe from '.\/printExample.js';\n\n(function() {\n\n  pe.printSomething(\"abc\");\n\n})();\n<\/code><\/pre>\n<p>The top level JavaScript file importing a module, must be included in an html or php file using a type of module:<\/p>\n<p>index.html:<\/p>\n<pre><code>&lt;html&gt;\n  &lt;head&gt;\n\n  &lt;\/head&gt;\n\n  &lt;body&gt;\n\n    &lt;script src=\"home.js\" type=\"module\"&gt&lt;\/script&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n\n<\/code><\/pre>\n<p><strong>Implementation:<\/strong><\/br><\/br><\/p>\n<p>\nIf you have been following along with the JavaScript Tutorial Series, take a look at modules\/TemperatureConverter.js and modules\/Weather.js. These are both JavaScript modules. They both are used by the javascript_tutorial.js file.<\/p>\n<p>In TemperatureConverter.js and Weather.js, notice the export default statements at the end of each file. These statements export the entire TemperatureConverter and Weather classes for use by other JavaScript files.<\/p>\n<p>In javascript_tutorial.js, notice the following lines at the top of the file:<\/p>\n<pre><code>\nimport TemperatureConverter from \".\/modules\/TemperatureConverter.js\";\nimport Weather from \".\/modules\/Weather.js\";\n<\/code><\/pre>\n<p>These lines import the entire TemperatureConverter and Weather classes. <\/p>\n<p>Further down, those names will be used to access functionality within its class.<\/p>\n<p>\nFor this implementation, there aren&#8217;t any file changes.<\/p>\n<p>For completeness, each file in the tutorial is shown below:<\/p>\n<pre><code>\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;link rel=\"stylesheet\" href=\"css\/style.css\"\/&gt;\n  &lt;\/head&gt;\n\n  &lt;body&gt;\n    &lt;header&gt;\n      &lt;nav&gt;\n\n      &lt;\/nav&gt;\n\n      &lt;article id=\"toolbar\"&gt;\n        &lt;article id=\"currentWeather\" class=\"text-center\"&gt;\n          &lt;section id=\"location\"&gt;\n          &lt;\/section&gt;\n          &lt;section id=\"weatherTemperature\"&gt;\n            &lt;span id=\"temperatureValue\"&gt;&lt;\/span&gt;\n            &lt;span id=\"degreeSymbol\"&gt;&deg;&lt;\/span&gt;\n            &lt;span id=\"temperatureUnits\"&gt;&lt;\/span&gt;\n          &lt;\/section&gt;\n          &lt;section id=\"weatherDescription\"&gt;\n          &lt;\/section&gt;\n          &lt;img id=\"weatherIcon\"&gt;                \n          &lt;\/img&gt;\n        &lt;\/article&gt;          \n      &lt;\/article&gt;\n\n    &lt;\/header&gt;\n\n    &lt;main&gt;&lt;\/main&gt;\n\n    &lt;footer&gt;&lt;\/footer&gt;\n\n    &lt;script src=\"js\/javascript_tutorial.js\" type=\"module\"&gt&lt;\/script&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code>\n<\/pre>\n<p>js\/javascript_tutorial.js:<\/p>\n<pre><code>\n\n\/\/ JavaScript Tutorial\n\n\/*\n * This file will add JavaScript\n * to a website.\n *\/\nimport TemperatureConverter from \".\/modules\/TemperatureConverter.js\";\nimport Weather from \".\/modules\/Weather.js\";\n\n(function() {\n  let doc = document;\n  let defaultLocation = [-86.7816, 36.1627]; \/\/ longitude, latitude\n\n  function setWeather(data) {\n    if (data) {\n      let temp = Math.round(data.main.temp);\n      try {\n        let fahrenheit = TemperatureConverter.convertCelsiusToFahrenheit(temp - 273);\n        console.log(\"Fahrenheit temperature: \" + fahrenheit);\n      } catch (error) {\n        console.log(\"Error setting weather: \" + error.message);\n      }\n    }\n  }\n\n  function init() {\n    let locationStr = \"\";\n    for (let i = 0, num = defaultLocation.length; i < num; i++) {\n      locationStr += defaultLocation[i];\n      if (i === 0) {\n        locationStr += \", \";\n      }\n    }\n\n    console.log(\"Setting weather for location: \" + locationStr);\n\n    setWeather({ main: { temp: 30 } });\n  }\n\n  init();\n})();\n\n<\/code><\/pre>\n<p>js\/modules\/TemperatureConverter.js:<\/p>\n<pre><code>\n\nclass TemperatureConverter {\n  \n    static convertKelvinToCelsius(kelvin) {\n        if (typeof kelvin !== 'number') {\n            throw 'Kelvin value is not a number';\n        }\n        return Math.round(kelvin - 273);\n      }\n    \n      static convertCelsiusToFahrenheit(celsius) {\n        if (typeof celsius !== 'number') {\n            throw 'Celsius value is not a number';\n        }\n        return Math.round((celsius * (9\/5)) + 32);\n      };\n    \n      static convertFahrenheitToKelvin(fahrenheit) {\n        if (typeof fahrenheit !== 'number') {\n            throw 'Fahrenheit value is not a number';\n        }\n        return Math.round(((5\/9) * (fahrenheit - 32)) + 273);\n    };\n}\n\nexport default TemperatureConverter;\n\n<\/code><\/pre>\n<p>js\/modules\/Weather.js:<\/p>\n<pre><code>\n\nclass Weather {\n\n    \/\/ Constructor\n    constructor() {\n    };\n\n    getLocation() {\n        let url = 'https:\/\/ipinfo.io\/json';\n        let options = {\n            mode : 'cors'\n        };\n    };\n\n    getWeather(coordinates) {\n       }  \n    }\n\nexport default Weather;\n\n<\/code><\/pre>\n<p>css\/style.css:<\/p>\n<p><\/p>\n<pre><code>\n\nheader nav {\n  height: 10vh;\n  border-bottom: 1px solid darkgray;\n}\n\nheader #toolbar {\n  height: 5vh;\n  border-bottom: 1px solid darkgray;\n}\n\nmain {\n  height: 72vh;\n  border-bottom: 1px solid darkgray;\n}\n\nfooter {\n  height: 10vh;\n  border-bottom: 1px solid darkgray;\n}\n\n<\/code><\/pre>\n<p>You should see the following in the browser console when loading the index.html file:<\/p>\n<p>Setting weather for location: -86.7816, 36.1627<br \/>\njavascript_tutorial.js:19 Fahrenheit temperature: -405<\/p>\n<p>\nNote, the files will need to be loaded onto a web server. If running them locally in Chrome, you may get a CORS error.<\/p>\n<p>\nThe JavaScript tutorial series starts with <a href=\"https:\/\/zofxare.com\/zofxare\/blog\/2019\/12\/javascript-tutorial-series-set-up.html\/\" rel=\"noopener noreferrer\" target=\"_blank\">this post<\/a>.<\/p>\n<p>\n(paid links)<\/br><br \/>\n<a href=\"https:\/\/amzn.to\/39aSKtV\" rel=\"noopener noreferrer\" target=\"_blank\">More JavaScript<\/a><\/br><\/br><\/p>\n<p><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=144934013X&amp;asins=144934013X&amp;linkId=1c564951ff9e32885fd78e6d3e51cd88&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=1119366445&amp;asins=1119366445&amp;linkId=dd23c2d87c50139ea87f57684a12c407&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=0596517742&amp;asins=0596517742&amp;linkId=6d3fc10c6f7129dfd9a699a17a1caa01&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><iframe frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\" scrolling=\"no\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&amp;OneJS=1&amp;Operation=GetAdHtml&amp;MarketPlace=US&amp;source=ss&amp;ref=as_ss_li_til&amp;ad_type=product_link&amp;tracking_id=zofxare-20&amp;language=en_US&amp;marketplace=amazon&amp;region=US&amp;placement=1497408180&amp;asins=1497408180&amp;linkId=13300f4284c721f7e5b0da78795da9eb&amp;show_border=true&amp;link_opens_in_new_window=true\" style=\"height: 240px; width: 120px;\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In JavaScript es6, modules provide the ability to use variables, methods and classes in another JavaScript file. The following is an example to export a function from a JavaScript file for use in another JavaScript file: export function printSomething(value) { console.log(value) } The function is exported by including the export keyword. It could also export [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[340,339,341],"tags":[],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-javascript","category-javascript-tutorials","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Tutorial Series - Modules - Zofxare Blog Home<\/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:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Tutorial Series - Modules - Zofxare Blog Home\" \/>\n<meta property=\"og:description\" content=\"In JavaScript es6, modules provide the ability to use variables, methods and classes in another JavaScript file. The following is an example to export a function from a JavaScript file for use in another JavaScript file: export function printSomething(value) { console.log(value) } The function is exported by including the export keyword. It could also export [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/\" \/>\n<meta property=\"og:site_name\" content=\"Zofxare Blog Home\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-20T21:42:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-13T15:04:52+00:00\" \/>\n<meta name=\"author\" content=\"adminuser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"adminuser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/\"},\"author\":{\"name\":\"adminuser\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/488c98b837076eb349075c14ea0e87d8\"},\"headline\":\"JavaScript Tutorial Series &#8211; Modules\",\"datePublished\":\"2020-04-20T21:42:00+00:00\",\"dateModified\":\"2024-09-13T15:04:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/\"},\"wordCount\":343,\"commentCount\":0,\"articleSection\":[\"javascript\",\"javascript tutorials\",\"tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/\",\"name\":\"JavaScript Tutorial Series - Modules - Zofxare Blog Home\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\"},\"datePublished\":\"2020-04-20T21:42:00+00:00\",\"dateModified\":\"2024-09-13T15:04:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/488c98b837076eb349075c14ea0e87d8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/2020\\\/04\\\/20\\\/javascript-tutorial-series-modules\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript Tutorial Series &#8211; Modules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/\",\"name\":\"Zofxare Blog Home\",\"description\":\"The Zofxare blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/#\\\/schema\\\/person\\\/488c98b837076eb349075c14ea0e87d8\",\"name\":\"adminuser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g\",\"caption\":\"adminuser\"},\"sameAs\":[\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\"],\"url\":\"https:\\\/\\\/zofxare.com\\\/zofxare\\\/blog\\\/author\\\/adminuser\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Tutorial Series - Modules - Zofxare Blog Home","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:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Tutorial Series - Modules - Zofxare Blog Home","og_description":"In JavaScript es6, modules provide the ability to use variables, methods and classes in another JavaScript file. The following is an example to export a function from a JavaScript file for use in another JavaScript file: export function printSomething(value) { console.log(value) } The function is exported by including the export keyword. It could also export [&hellip;]","og_url":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/","og_site_name":"Zofxare Blog Home","article_published_time":"2020-04-20T21:42:00+00:00","article_modified_time":"2024-09-13T15:04:52+00:00","author":"adminuser","twitter_card":"summary_large_image","twitter_misc":{"Written by":"adminuser","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/#article","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/"},"author":{"name":"adminuser","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/488c98b837076eb349075c14ea0e87d8"},"headline":"JavaScript Tutorial Series &#8211; Modules","datePublished":"2020-04-20T21:42:00+00:00","dateModified":"2024-09-13T15:04:52+00:00","mainEntityOfPage":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/"},"wordCount":343,"commentCount":0,"articleSection":["javascript","javascript tutorials","tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/","url":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/","name":"JavaScript Tutorial Series - Modules - Zofxare Blog Home","isPartOf":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website"},"datePublished":"2020-04-20T21:42:00+00:00","dateModified":"2024-09-13T15:04:52+00:00","author":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/488c98b837076eb349075c14ea0e87d8"},"breadcrumb":{"@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zofxare.com\/zofxare\/blog\/2020\/04\/20\/javascript-tutorial-series-modules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zofxare.com\/zofxare\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript Tutorial Series &#8211; Modules"}]},{"@type":"WebSite","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#website","url":"https:\/\/zofxare.com\/zofxare\/blog\/","name":"Zofxare Blog Home","description":"The Zofxare blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zofxare.com\/zofxare\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zofxare.com\/zofxare\/blog\/#\/schema\/person\/488c98b837076eb349075c14ea0e87d8","name":"adminuser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c5fe9cf8bb25011247f8063d1c50de6fbdd21be02889559dd151d722f050f037?s=96&d=retro&r=g","caption":"adminuser"},"sameAs":["https:\/\/zofxare.com\/zofxare\/blog"],"url":"https:\/\/zofxare.com\/zofxare\/blog\/author\/adminuser\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":2,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/posts\/200\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zofxare.com\/zofxare\/blog\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}