{"_id":"@akifo/nuxt-jsonld","_rev":"2-9ef423e2cd9d61786bbe76d565ceb555","name":"@akifo/nuxt-jsonld","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.6":{"name":"@akifo/nuxt-jsonld","version":"0.0.6","description":"manage jsonld in Vue component.","main":"./src/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/akifo/nuxt-jsonld.git"},"author":{"name":"Akiho Nagao"},"license":"MIT","keywords":["attribute","head","meta","seo","vue","nuxt"],"scripts":{"test":"jest","lint":"eslint . --ignore-pattern .gitignore","lint:fix":"eslint . --ignore-pattern .gitignore --fix"},"devDependencies":{"@babel/core":"^7.1.6","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","eslint":"^5.9.0","eslint-config-airbnb-base":"^13.1.0","eslint-config-prettier":"^3.3.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jest":"^22.1.0","eslint-plugin-prettier":"^3.0.0","jest":"^23.6.0","prettier":"^1.15.2","vue":"^2.5.17"},"gitHead":"e58d1f6b7bb48494bb35a1ee79f45daffdacf928","bugs":{"url":"https://github.com/akifo/nuxt-jsonld/issues"},"homepage":"https://github.com/akifo/nuxt-jsonld#readme","_id":"@akifo/nuxt-jsonld@0.0.6","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"akifo","email":"akiho.nagao@gmail.com"},"dist":{"integrity":"sha512-baXx9SSSQPsd88DccjVW5QK+iduSgwQPrAiydf9o0MZpn2G5m3+FkYxl7HUp4HTUuTlY48H4WoJQPr1ZDEgxRQ==","shasum":"003caddb3d04f6b42d083abcfa1f6cdb3ca3d0be","tarball":"https://registry.npmjs.org/@akifo/nuxt-jsonld/-/nuxt-jsonld-0.0.6.tgz","fileCount":28,"unpackedSize":145545,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfo/eCRA9TVsSAnZWagAAdLoP/1Gmzdgi+cRdbla0UquT\n0m0DABxG6NrYBYjCoKoF4QakXSuD24pwOiYCR28xX7rd5ytpfsHUnbX8t8C5\nACu/A6pDYkorKJzG+9iHrI1Is/7a0ULMhdr2Nb48wQXX0jKfUc6FuB3dYPw4\nmHER2aRBuYihy0nmAQcK8Lj4aIB4Uor1ZXKminf8AZuRkplTlQB67zdnt72i\nu85zarVLqxoY0Bqmff1CCvfhYukdn9l3/HTeWzpTsN9+b6ilmjq91GS7yT/O\nazrnwoMMVHPETNfSj/bREyxwxYy1DlPRULzFQUDOqakhi9M/DPrtrfDXG1ZH\nqmJooXWXcqBvt0fy/d52iAe0ccpCQvOszs3/+5rokLWk4eWSOIR5VUJbioNP\nRkte63DfjsKVRy1z7s0S+QbpPyieUSo+QyMoNSJQJDw6VMsPImwESXvI8Em2\n8OCB5zi1+zo5aJdyxw5OIR5oQEktFGHnSxGHQZeSd6DdYRjdoumgP43+xzmL\n0QC02KXq+DLOkh7FLdOQ1d004xWoRdfrvAdeXetQp+cKBhUm6Y9J3GN8Kp72\nQS0fr4IAEgUR0u5K3uLCK9fHMYPkHfK9/Jc8vCPIRFQgA/vEkfVrHPNA5P5r\nhM5alY4q0wwh4TyVmoZ55i7ne+Wt5MKSL5yjGQF15b7XjZgC0+N22ozkU5si\nbQ+J\r\n=vMKT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDO5H0aZPqL8AQK6xIXu9DL8HA28AdJnI0fUGm/f13PcQIhAOeRiGWB8jVDGSJxkTM6WPwCfArIhef9dbxaKsLHUpKD"}]},"maintainers":[{"name":"akifo","email":"akiho.nagao@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nuxt-jsonld_0.0.6_1551798237617_0.9142752686109841"},"_hasShrinkwrap":false},"0.0.7":{"name":"@akifo/nuxt-jsonld","version":"0.0.7","description":"manage jsonld in Vue component.","main":"./src/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/akifo/nuxt-jsonld.git"},"author":{"name":"Akiho Nagao"},"license":"MIT","keywords":["attribute","head","meta","seo","vue","nuxt"],"scripts":{"test":"jest","lint":"eslint . --ignore-pattern .gitignore","lint:fix":"eslint . --ignore-pattern .gitignore --fix"},"devDependencies":{"@babel/core":"^7.1.6","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","eslint":"^5.9.0","eslint-config-airbnb-base":"^13.1.0","eslint-config-prettier":"^3.3.0","eslint-plugin-import":"^2.14.0","eslint-plugin-jest":"^22.1.0","eslint-plugin-prettier":"^3.0.0","jest":"^23.6.0","prettier":"^1.15.2","vue":"^2.5.17"},"gitHead":"0997c80f8145f4e24639c326fb1790e32c9d0d39","bugs":{"url":"https://github.com/akifo/nuxt-jsonld/issues"},"homepage":"https://github.com/akifo/nuxt-jsonld#readme","_id":"@akifo/nuxt-jsonld@0.0.7","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"akifo","email":"akiho.nagao@gmail.com"},"dist":{"integrity":"sha512-YrtScAkwfccy79xJpyg5w7hQgWI/IonB2SPefZlgW/44vxGlSqIvYgeXuHX69+s4v4RcxW9RtCDb5Ujn/5UXsQ==","shasum":"9dfdc163543de676eac0077da5d9d510671266a2","tarball":"https://registry.npmjs.org/@akifo/nuxt-jsonld/-/nuxt-jsonld-0.0.7.tgz","fileCount":4,"unpackedSize":4307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfptgCRA9TVsSAnZWagAAb3IP/jGK7M8j8tA6+1LNqc77\n8Pxx5m5iTziHC4PbUW7VeqVnnJqNoHT7idptHsqRjBQ8bTJW3Eddxbe0xwKt\nu4A5SO11RP4aUV7KhqpXAmLuEOVvTrEhG8Ut9rOu5UZae52wdc0T3PVKAdJU\nZZtb45ECgdvrqIhXKqoAaS8LF1HGuP3o3HzsiFb2B5xO5SzjRQsTimxDBOQo\naHh2Z/tj0uEovd3ff6VxYnlmBBtP8G23jT7EHOE/cYUY5EqQsmDqGrMmZhYh\nw3xE8JH0kNZbLD6fZPWkSyxqLKYpBZcMPGAr2JcFxk7TIQFLFytWSe5pLcDG\nVtuPi1vimyYv3+8mLoHx0tWdHqQ6d748tG9NRIVI/sksYfAENqC0UjcSqYsa\nunBdO4tVMwxTFxVStpmB/E1KkqN6ysxVY0SGOdbM8sTnD4HlDMHDGRFff7FW\nqyhYi6cXISb+EQpqqlowgtorqHrjt57hJVKzabiBAIvxCLP4P0PkbpzbqSnz\nKcYEAfGgxQAXUGErYm2RqckL78XcPbQr0oHNkZ9FW+xE790Luh6mPnicbJME\nw7QrkUz/ktWR/Od8iMnVjtSFIF5H0wLcgajbPMnYDHxkZhf6qmsL7pxSV5YP\n6dYA5n1/CEnBlHrlztBGYuoGHAc2Yu1oNkKcXgsqXIjXOa6WKQPdbmWLtPdQ\ni0Ii\r\n=AP1T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/1PN0eUkX3wagAr/aDRrojuchYhg7plo2wkvr0gq/hAiEA2K+IraQCbzj/LObOkoOBSr+NOc2soIvThcwEqWzTiPw="}]},"maintainers":[{"name":"akifo","email":"akiho.nagao@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nuxt-jsonld_0.0.7_1551801183933_0.47491117259392723"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-05T15:03:57.439Z","0.0.6":"2019-03-05T15:03:57.941Z","modified":"2022-04-04T12:29:20.583Z","0.0.7":"2019-03-05T15:53:04.086Z"},"maintainers":[{"name":"akifo","email":"akiho.nagao@gmail.com"}],"description":"manage jsonld in Vue component.","homepage":"https://github.com/akifo/nuxt-jsonld#readme","keywords":["attribute","head","meta","seo","vue","nuxt"],"repository":{"type":"git","url":"git+ssh://git@github.com/akifo/nuxt-jsonld.git"},"author":{"name":"Akiho Nagao"},"bugs":{"url":"https://github.com/akifo/nuxt-jsonld/issues"},"license":"MIT","readme":"# nuxt-jsonld\n\nA Nuxt.js plugin to manage jsonld in Vue component.\n\n## Installation\n\n```bash\n$ yarn add nuxt-jsonld\nor\n$ npm install nuxt-jsonld\n```\n\n```js\n// plugins/jsonld.js\nimport Vue from 'vue';\nimport NuxtJsonld from 'nuxt-jsonld';\n\nVue.use(NuxtJsonld);\n```\n\n## Usage\n\nMake a jsonld method to your Vue components and return structured data object.\n\n```vue\n<template>\n  ...\n</template>\n\n<script>\nexport default {\n  data() {\n    return {\n      breadcrumbs: [\n        {\n          url: 'https://example.com',\n          text: 'top page',\n        },\n        {\n          url: 'https://example.com/foo',\n          text: 'foo',\n        },\n        {\n          url: 'https://example.com/foo/bar',\n          text: 'bar',\n        },\n      ],\n    };\n  },\n  jsonld() {\n    const items = this.breadcrumbs.map((item, index) => ({\n      '@type': 'ListItem',\n      position: index + 1,\n      item: {\n        '@id': item.url,\n        name: item.text,\n      },\n    }));\n    return {\n      '@context': 'http://schema.org',\n      '@type': 'BreadcrumbList',\n      itemListElement: items,\n    };\n  },\n};\n</script>\n```\n\n🎉 You will get the jsonld tag! 🎉\n\n```html\n<script type=\"application/ld+json\">\n{\n  \"@context\": \"http://schema.org\",\n  \"@type\": \"BreadcrumbList\",\n  \"itemListElement\": [\n    {\n      \"@type\": \"ListItem\",\n      \"position\": 1,\n      \"item\": {\n        \"@id\": \"https://example.com\",\n        \"name\": \"top page\"\n      }\n    },\n    {\n      \"@type\": \"ListItem\",\n      \"position\": 2,\n      \"item\": {\n        \"@id\": \"https://example.com/foo\",\n        \"name\": \"foo\"\n      }\n    },\n    {\n      \"@type\": \"ListItem\",\n      \"position\": 3,\n      \"item\": {\n        \"@id\": \"https://example.com/foo/bar\",\n        \"name\": \"bar\"\n      }\n    },\n  ]\n}\n</script>\n```\n","readmeFilename":"README.md"}