{"_id":"@artifactlabs/open-graph","_rev":"2-4eeea28fe477b3a4d98d383ead68eda1","name":"@artifactlabs/open-graph","dist-tags":{"latest":"0.2.6"},"versions":{"0.2.5":{"name":"@artifactlabs/open-graph","version":"0.2.5","description":"An Open Graph implementation for Node.js.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["open graph","open","graph","opengraph","og"],"repository":{"type":"git","url":"git+ssh://git@github.com/samholmes/node-open-graph.git","web":"http://github.com/samholmes/node-open-graph"},"author":{"name":"Sam Holmes"},"license":"BSD","dependencies":{"cheerio":"^0.22.0","request":"^2.73.0"},"gitHead":"5a23bc592c5f0c2ffb0ce83949cee59f8107890a","bugs":{"url":"https://github.com/samholmes/node-open-graph/issues"},"homepage":"https://github.com/samholmes/node-open-graph#readme","_id":"@artifactlabs/open-graph@0.2.5","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"artifactlabs","email":"info@bunz.com"},"dist":{"integrity":"sha512-KT9fFFCQA3kKSNO0wysiD0MRTrdhjLMfWpbHlWnY5kpPx+pF22yoWlRytLkN0gv5VMU7s2B3YxKrn+Nrq/B06A==","shasum":"4d0878d2c5950b78ce2253eed59736564163e8c0","tarball":"https://registry.npmjs.org/@artifactlabs/open-graph/-/open-graph-0.2.5.tgz","fileCount":5,"unpackedSize":6613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcx5JmCRA9TVsSAnZWagAAKPwP/RKYYtHlngGMYD7UKcGH\nOedaUXaaP7QRe36sTrwcvXnXgyXviTqJq27SQJlw6VtbmWgL/Cu3LYitNAUK\n5yu80pAh/mmYtZdA0oMxhJaYT2YBmNggzJJyGvPPrFu6D2SaadbDlHk5574e\nCkaD3zvRYLvkLguRkaN20UP867pGmvMoZwQZru6AxXptMFDdMOvdnbUHp/G/\nMXs8y1YBIsJskWo2PGOkM7RJV9fg3sp21wMVXUme8B7L5wuSHkHyiOpR+x1T\n3O9Q8z2Y8DY+z32UCCqnCJGkvml/SBHbr5X6mApXlMz+2rdfmIKOAfoBC8N2\nj00mUlfBuxK7w+zXCsGjrwlpng2loF4StSB+CMdGc3ECHbq5hUPbRUDaMkRA\n/Oh8v7LUcn/7iCiF2+XsN0T4FnyH9EOA9uvTc1hsCXakEljX1uiLqFG98hmw\nL6lQrQcv5RwpBGV7d1IDPP3FjDyjTAviClV669twk/q1VlaqAB1nN/ip+Kjp\nXNht7RaHjaRoLj9IG8YJnLpCE94Z5/2tCT1hYe66Zro40x0rPB1DFzO4eMbB\nPHS7rpAN0zY7CSaGeK/SwL52PqNvoBnJH0e9HSMIbCMWD6d1UOegf3MOz7s5\nwt1f6derjtrzl8KZRREW84iVSM+LDj+DvLly8gL8siyTQO3FWeTALTrY5TAp\nnOlv\r\n=C6MS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEs1L/6CfX8YnkDhZIWef+4dijTcQMx3Z3wKTvE8pe7aAiAo1vVocGJ/vjYuugtYESdHC0rwCPVIMkC5eJKVdcAR8g=="}]},"maintainers":[{"name":"artifactlabs","email":"info@bunz.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/open-graph_0.2.5_1556583013425_0.2669815433382132"},"_hasShrinkwrap":false},"0.2.6":{"name":"@artifactlabs/open-graph","version":"0.2.6","description":"An Open Graph implementation for Node.js.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["open graph","open","graph","opengraph","og"],"repository":{"type":"git","url":"git+ssh://git@github.com/samholmes/node-open-graph.git","web":"http://github.com/samholmes/node-open-graph"},"author":{"name":"Sam Holmes"},"license":"BSD","dependencies":{"cheerio":"^0.22.0","request":"^2.73.0"},"gitHead":"5a23bc592c5f0c2ffb0ce83949cee59f8107890a","bugs":{"url":"https://github.com/samholmes/node-open-graph/issues"},"homepage":"https://github.com/samholmes/node-open-graph#readme","_id":"@artifactlabs/open-graph@0.2.6","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"artifactlabs","email":"info@bunz.com"},"dist":{"integrity":"sha512-GAMFryA2EbAho8Mk+72I9nXFrj4SNJeo0nAvyqGsFWms/03Cehf0pnNuRgN40wS2nHgm8Z+BcxX3hack6FEt/Q==","shasum":"6e53fceb708b520280354d7bb97757bb585b8764","tarball":"https://registry.npmjs.org/@artifactlabs/open-graph/-/open-graph-0.2.6.tgz","fileCount":5,"unpackedSize":6950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcx5OaCRA9TVsSAnZWagAAFJ0QAIM876cZ/g+YbTSYxVXZ\ngme3IVUXUqsB+X8sL+4F6T3NvXI5ajF5BRlT5erPURXsnHAAOl+tmpcFNg1I\nG44r4WGa027VE5oO172zJQH0RCT1BaziC5jJBLm8JoHGHetXLAQpA0klR3kI\n+UGhyrs+QWjOl59AQWyAsLvrdAWCo1F0MrHYSHGeSC1U+x3Nd38EvbUtMdMu\nTclCHI+SjAQpDGf4MMl8mZBvv4+Yzc6RHQCFqvBWd72ujoTnP92nYO/Pw+Wz\ntmJ0/Jf4+R6YPhsM69MnIdU/c4UEIm3cgEuLVbMwPOUJhqrJyPsb2SIZ6BeR\nHqLbH9XLuKZUXiWH3M5IT+bFSXk7DX+3cxuu35+YGe8iO8+688+nJ//SjPzH\nOwmLD8hOcSRESQ0pkTeU0sM4dhwqOErzxEJ15wwWi8qM/jenvQ+wn9D9kHS5\n5ymZ7uq4Dogl3wUDlgXPf1KFM8kVB5iDXUEKDQeMA5MmwWD03HrYSfmeENUx\nKQyIZfRCdeJ4Z5pKhUZqxE5anqlYroFIwqaP2pCYvzyTZfx+UBDaDlJMJiDF\nhvg3IrI7KWuGjTKqkezt7bS5vNz2iA+ocv26MTFfRu+8VMxPzSOUpejoPN0N\nxkKKK3JfJnIlNpOrzsf8L4dKgSXDusHQguqZLouII7th2+D0y3kxZ2UoP+YD\ntHy0\r\n=2MRc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu/IWLy0bSD2DIpU1xlt7y4GL1iV0URnxEFY3xoWOzQAIgEp2jYRWttz5aqOh91lNAj6CruqHfhwsxUKU91yd2Lh0="}]},"maintainers":[{"name":"artifactlabs","email":"info@bunz.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/open-graph_0.2.6_1556583321904_0.7967714170430247"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-30T00:10:13.233Z","0.2.5":"2019-04-30T00:10:13.570Z","modified":"2022-04-04T15:38:42.513Z","0.2.6":"2019-04-30T00:15:22.219Z"},"maintainers":[{"name":"artifactlabs","email":"info@bunz.com"}],"description":"An Open Graph implementation for Node.js.","homepage":"https://github.com/samholmes/node-open-graph#readme","keywords":["open graph","open","graph","opengraph","og"],"repository":{"type":"git","url":"git+ssh://git@github.com/samholmes/node-open-graph.git","web":"http://github.com/samholmes/node-open-graph"},"author":{"name":"Sam Holmes"},"bugs":{"url":"https://github.com/samholmes/node-open-graph/issues"},"license":"BSD","readme":"# Open Graph for Node.js\n\nAn [Open Graph](http://ogp.me/) implementation for Node.js.\nSimple to use; give it a URL and it'll give you the open graph meta properties scraped from that URL.\n\n## Install\n```\nnpm install open-graph\n```\n\n## Usage\n\n```js\nconst og = require('open-graph');\n\nconst url = 'http://github.com/samholmes/node-open-graph/raw/master/test.html';\n\nog(url, function (err, meta) {\n  console.log(meta);\n});\n```\n\nOutputs:\n\n```js\n{\n  title: 'OG Testing',\n  type: 'website',\n  url: 'http://github.com/samholmes/node-open-graph/raw/master/test.html',\n  site_name: 'irrelavent',\n  description: 'This is a test bed for Open Graph protocol.',\n  image: {\n    url: 'http://google.com/images/logo.gif',\n    width: '100',\n    height: '100'\n  }\n}\n```\n\n# Todo\n\n1. **Better parser**\n  Meta data should be parsed into pure JSON and arrays should be handled at root nodes, not leaf nodes\n2. **Better data types**\n  Convert properties to numbers, etc.\n3. **Fallback data**\n  If Open Graph data isn't present, scrap img elements and document titles off the page.\n","readmeFilename":"readme.md"}