{"_id":"@risingstack/nx-seo","_rev":"26-9e2bace4eeb14ca2e6db007a6d1ed11b","name":"@risingstack/nx-seo","description":"An express middleware for NX, used for SEO. Works by sending prerendered HTML pages to crawlers.","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@risingstack/nx-seo","version":"1.0.0","description":"An express middleware for NX, used for SEO. Works by sending prerendered HTML pages to crawlers.","main":"seo.js","author":{"name":"Miklos Bertalan","email":"miklos.bertalan@risingstack.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/RisingStack/nx-seo.git"},"scripts":{"start":"node seo"},"bugs":{"url":"https://github.com/RisingStack/nx-seo/issues"},"engines":{"node":">=6.0.0"},"homepage":"http://nx-nxframework.rhcloud.com","keywords":["NX","SEO","render","jsdom","express"],"license":"MIT","dependencies":{"jsdom":"8.5.0","spider-detector":"1.0.15"},"gitHead":"cb063be576d9daa5fa17550a3dee912665c3697f","_id":"@risingstack/nx-seo@1.0.0","_shasum":"1aab152345179b2f500b916bc7c399eec120c4ac","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.2.6","_npmUser":{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},"dist":{"shasum":"1aab152345179b2f500b916bc7c399eec120c4ac","tarball":"https://registry.npmjs.org/@risingstack/nx-seo/-/nx-seo-1.0.0.tgz","integrity":"sha512-RPLkihiw36+TctgqMyIcwalhYpbS93apGr0z1EB2ejunQvMtkLOYSQ9ooDSbOLmuHPjHJUFXqeQcGPCzWF1aWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcn5yuS6GiXJ53PdUBcEpNfHOwSSRbxRTgTYqVhOuLxAiBaSzLIITTViqvBYeNnJAu4/rVlU7bZkCMUHTw8Zr2vvQ=="}]},"maintainers":[{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nx-seo-1.0.0.tgz_1468755271610_0.0777118718251586"},"directories":{}},"1.0.1":{"name":"@risingstack/nx-seo","version":"1.0.1","description":"An express middleware for NX, used for SEO. Works by sending prerendered HTML pages to crawlers.","main":"seo.js","author":{"name":"Miklos Bertalan","email":"miklos.bertalan@risingstack.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/RisingStack/nx-seo.git"},"scripts":{"start":"node seo"},"bugs":{"url":"https://github.com/RisingStack/nx-seo/issues"},"engines":{"node":">=6.0.0"},"homepage":"http://nx-nxframework.rhcloud.com","keywords":["NX","SEO","render","jsdom","express"],"license":"MIT","dependencies":{"jsdom":"8.5.0","spider-detector":"1.0.15"},"gitHead":"30c55ece096e1f2895a6b6c475ebe3a608cc74d1","_id":"@risingstack/nx-seo@1.0.1","_shasum":"fe8705882b5337ca29036960ef34b06d5a851f25","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.2.6","_npmUser":{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},"dist":{"shasum":"fe8705882b5337ca29036960ef34b06d5a851f25","tarball":"https://registry.npmjs.org/@risingstack/nx-seo/-/nx-seo-1.0.1.tgz","integrity":"sha512-xNM1EjTHLTzw9sr44ogasmgrTsyeM0Rw0m5evpsCUppWHUmsoDuaCA2GTntRaMv+TDjgk1XHPIFwpyA2ldcTLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHj18VBH2QkTFZ5+ovH8AfUWRqNURWd74zHJMMIq++HZAiEA5QLgJmQtRjZoJEj7KTuTIKA8Hhroais8+/wxjBcicDc="}]},"maintainers":[{"name":"abelerdesz","email":"abelerdesz@gmail.com"},{"name":"aodev","email":"kevin.purnelle@gmail.com"},{"name":"gergelyke","email":"mail@nemethgergely.com"},{"name":"hekike","email":"peter@risingstack.com"},{"name":"midiparse","email":"david.szakallas@gmail.com"},{"name":"ozonid","email":"david@risingstack.com"},{"name":"peteyycz","email":"p.czibik@gmail.com"},{"name":"risingnpm","email":"info@risingstack.com"},{"name":"shadowbeetle","email":"tamas.kadlecsik@gmail.com"},{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},{"name":"tamas.hodi","email":"tamas.hodi89@gmail.com"},{"name":"tothandras","email":"andras.toth@risingstack.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nx-seo-1.0.1.tgz_1468757819677_0.19065886503085494"},"directories":{}},"1.0.2":{"name":"@risingstack/nx-seo","version":"1.0.2","description":"An express middleware for NX, used for SEO. Works by sending prerendered HTML pages to crawlers.","main":"seo.js","author":{"name":"Miklos Bertalan","email":"miklos.bertalan@risingstack.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/RisingStack/nx-seo.git"},"scripts":{"start":"node seo"},"bugs":{"url":"https://github.com/RisingStack/nx-seo/issues"},"engines":{"node":">=6.0.0"},"homepage":"http://nx-nxframework.rhcloud.com","keywords":["NX","SEO","render","jsdom","express"],"license":"MIT","dependencies":{"jsdom":"8.5.0","spider-detector":"1.0.15"},"gitHead":"b0fc4d181815dabc603e959406c1a7e2b0e2e256","_id":"@risingstack/nx-seo@1.0.2","_shasum":"c24b77f734744901eedb33353faac81f236d4639","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.2.6","_npmUser":{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},"dist":{"shasum":"c24b77f734744901eedb33353faac81f236d4639","tarball":"https://registry.npmjs.org/@risingstack/nx-seo/-/nx-seo-1.0.2.tgz","integrity":"sha512-XA2uTMHphLg9QIUwYTUAYOMFsMq7sH+07hMB194P+eBANPs8D/h/2ZfP78ZNyEdgxKdi9Mts+uHdXIoMUiIyww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTXwlUxuwCBUBIAwXgXQjatakOktAxNnp7U1kzgIpnmAIgGBbpgCMPb6IXvFqpUiuCeU/IMyaop6uNoSgFBKg8RWs="}]},"maintainers":[{"name":"abelerdesz","email":"abelerdesz@gmail.com"},{"name":"aodev","email":"kevin.purnelle@gmail.com"},{"name":"gergelyke","email":"mail@nemethgergely.com"},{"name":"hekike","email":"peter@risingstack.com"},{"name":"midiparse","email":"david.szakallas@gmail.com"},{"name":"ozonid","email":"david@risingstack.com"},{"name":"peteyycz","email":"p.czibik@gmail.com"},{"name":"risingnpm","email":"info@risingstack.com"},{"name":"shadowbeetle","email":"tamas.kadlecsik@gmail.com"},{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},{"name":"tamas.hodi","email":"tamas.hodi89@gmail.com"},{"name":"tothandras","email":"andras.toth@risingstack.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nx-seo-1.0.2.tgz_1468759354549_0.908657894236967"},"directories":{}},"1.0.3":{"name":"@risingstack/nx-seo","version":"1.0.3","description":"An express middleware for NX, used for SEO. Works by sending prerendered HTML pages to crawlers.","main":"seo.js","author":{"name":"Miklos Bertalan","email":"miklos.bertalan@risingstack.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/RisingStack/nx-seo.git"},"scripts":{"start":"node seo"},"bugs":{"url":"https://github.com/RisingStack/nx-seo/issues"},"engines":{"node":">=6.0.0"},"homepage":"http://nx-nxframework.rhcloud.com","keywords":["NX","SEO","render","jsdom","express"],"license":"MIT","dependencies":{"jsdom":"8.5.0","spider-detector":"1.0.15"},"gitHead":"74142176f43a9d69d399233006a42712ee6579ff","_id":"@risingstack/nx-seo@1.0.3","_shasum":"1f602c17e37d72e023bf87598725fadacc3a15ff","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.2.6","_npmUser":{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},"dist":{"shasum":"1f602c17e37d72e023bf87598725fadacc3a15ff","tarball":"https://registry.npmjs.org/@risingstack/nx-seo/-/nx-seo-1.0.3.tgz","integrity":"sha512-rqbNTnksU4/E6Zq+lloVnFXtXyuNS7wM3bMfRXaPF9zI4WU7HgDUn8WWWnwGAfs3LhPEUEvPi1YCPUY/Hg3ITw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8LCyWkaaXdMADwnSTBrIu8rs4Uh4hKI3vr5HVpS6ZBQIgEZT82WfL7+YoCtO7lfMOyGlLchpmE5piHwwah6n5QpY="}]},"maintainers":[{"name":"abelerdesz","email":"abelerdesz@gmail.com"},{"name":"aodev","email":"kevin.purnelle@gmail.com"},{"name":"gergelyke","email":"mail@nemethgergely.com"},{"name":"hekike","email":"peter@risingstack.com"},{"name":"midiparse","email":"david.szakallas@gmail.com"},{"name":"ozonid","email":"david@risingstack.com"},{"name":"peteyycz","email":"p.czibik@gmail.com"},{"name":"risingnpm","email":"info@risingstack.com"},{"name":"shadowbeetle","email":"tamas.kadlecsik@gmail.com"},{"name":"solkimicreb","email":"miklos.bertalan1@gmail.com"},{"name":"tamas.hodi","email":"tamas.hodi89@gmail.com"},{"name":"tothandras","email":"andras.toth@risingstack.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nx-seo-1.0.3.tgz_1470140562381_0.35114122671075165"},"directories":{}}},"readme":"# nx-seo\n\nAn express middleware, that pre-renders [NX](http://nx-framework.com/) apps when the request user-agent is a crawler.\nIt also removes all the scripts from the page after rendering and before sending the final HTML.\n\n## Installation\n\n```\n$ npm install @risingstack/nx-seo\n```\n\n## Platform support\n\nNodeJS 6 and above.\n\n## Usage\n\nThe below code creates a simple express server for NX. It servers static assets if found.\nThen it detects crawler user-agents with the seo middleware and prerenders pages for them.\nFinally it server the main page of the app for bootstrapping, if non of the above conditions are met.\n\n```js\nconst express = require('express')\nconst app = express()\nconst server = require('http').createServer(app)\nconst seo = require('@risingstack/nx-seo')\n\nconst port = 8080\nconst ip = \"127.0.0.1\"\nconst mainFile = '/app.html'\n\napp.use(express.static(__dirname))\napp.use(seo({ timeout: 5, debug: true }))\napp.use((req, res, next) => {\n  if (req.accepts('html')) res.sendFile(__dirname + mainFile)\n})\n\nserver.listen(port, ip)\n```\n\n## Configuration\n\nYou can pass a config object to `seo` as argument. It currently has two options.\n`debug` is a boolean, which defaults to false. If you set it to true errors during\nthe pre-render will be forwarded to the NodeJS console.\n`timeout` is a number, which defaults to 0. It applies a timeout to allow pre-rendering deferred\nscripts before sending the result. Use it if your page doesn't render for the crawlers.\n\n## Contributing\n\nBug fixes, tests and new ideas are always welcome. Thanks!\n","maintainers":[{"email":"kubischj@windowslive.com","name":"kubischj"},{"email":"fwalkwithm@gmail.com","name":"fwalkwithm"},{"email":"david@risingstack.com","name":"ozonid"},{"email":"simonzsoltjota@gmail.com","name":"jota"},{"email":"dandesz198@gmail.com","name":"dandesz198"},{"email":"diana.pal@risingstack.com","name":"paldiana01"},{"email":"info@risingstack.com","name":"risingnpm"},{"email":"mail@nemethgergely.com","name":"gergelyke"},{"email":"email@martonpeter.com","name":"hekike"},{"email":"p.czibik@gmail.com","name":"peteyycz"},{"email":"tamas.hodi89@gmail.com","name":"tamas.hodi"},{"email":"miklos.bertalan@risingstack.com","name":"solkimicreb"}],"time":{"modified":"2022-06-12T23:14:47.804Z","created":"2016-07-17T11:34:33.978Z","1.0.0":"2016-07-17T11:34:33.978Z","1.0.1":"2016-07-17T12:17:02.065Z","1.0.2":"2016-07-17T12:42:35.636Z","1.0.3":"2016-08-02T12:22:43.394Z"},"homepage":"http://nx-nxframework.rhcloud.com","keywords":["NX","SEO","render","jsdom","express"],"repository":{"type":"git","url":"git+ssh://git@github.com/RisingStack/nx-seo.git"},"author":{"name":"Miklos Bertalan","email":"miklos.bertalan@risingstack.com"},"bugs":{"url":"https://github.com/RisingStack/nx-seo/issues"},"license":"MIT","readmeFilename":"README.md"}