{"_id":"@cretezy/react-router-sitemap","_rev":"1-2d9a0b3985f41d64e2ec52a2c36a0a59","name":"@cretezy/react-router-sitemap","dist-tags":{"latest":"1.1.5"},"versions":{"1.1.5":{"name":"@cretezy/react-router-sitemap","version":"1.1.5","description":"Module to generate a sitemap for react-router configuration","repository":{"type":"git","url":"git+https://github.com/Cretezy/react-router-sitemap.git"},"keywords":["react","react-router","sitemap","es2015"],"main":"dist/index.js","jsnext:main ":"lib/index.js","scripts":{"lint":"eslint --ext .js,.jsx ./config ./example ./lib ./test","test":"karma start ./config/karma.config.js","build":"webpack --config ./config/build.config.js","example":"cd example && node .","documentation":"documentation build ./lib ./lib/routes-parser ./lib/paths-filter ./lib/params-applier ./lib/sitemap-builder -f md > api.md","prepublish":"npm run build"},"author":{"name":"Igor Uvarov","email":"kuflash@ya.ru","url":"http://kuflash.ru"},"license":"MIT","files":["dist","lib"],"devDependencies":{"@babel/core":"^7.0.0","babel-eslint":"^9.0.0","babel-loader":"^8.0.0","@babel/preset-env":"^7.0.0","@babel/preset-react":"^7.0.0","@babel/register":"^7.0.0","documentation":"^8.1.0","eslint":"^5.4.0","eslint-plugin-react":"^7.11.1","jasmine-collection-matchers":"^0.2.0","jasmine-core":"^2.4.1","jasmine-expect":"^2.0.2","karma":"^0.13.22","karma-cli":"^1.0.0","karma-jasmine":"^1.0.2","karma-jasmine-matchers":"^2.0.2","karma-minimalist-reporter":"^0.2.0","karma-phantomjs-launcher":"^1.0.0","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","phantomjs-prebuilt":"^2.1.7","react":"^16.0.0","webpack":"^4.17.0","webpack-cli":"^3.1.0","webpack-node-externals":"^1.7.0","react-router":"^3.2.0"},"peerDependencies":{"react-router":"^3.2.0"},"dependencies":{"sitemap":"^1.13.0"},"gitHead":"8ed215cbb045d958dd0b84efedbae7b402ef99e6","bugs":{"url":"https://github.com/Cretezy/react-router-sitemap/issues"},"homepage":"https://github.com/Cretezy/react-router-sitemap#readme","_id":"@cretezy/react-router-sitemap@1.1.5","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"cretezy","email":"charles@cretezy.com"},"dist":{"integrity":"sha512-QTvA4O6VIOve0Kv+hh/RgmWw9m2wwN1RUGclLLeu8TQ/hyEp6imFJcd+PegON1bHHMr+lRTOgaMFwDKbVfUpbQ==","shasum":"f3ba3a0c46ed9f90809ab49d7133db6f0ed6fc8f","tarball":"https://registry.npmjs.org/@cretezy/react-router-sitemap/-/react-router-sitemap-1.1.5.tgz","fileCount":17,"unpackedSize":24050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhY3YCRA9TVsSAnZWagAAD5IP/3S/GCVkLbqlRxBw4d2O\n97CIDDijw0zYXqmlxrVnCROs5PY6eS2ukBcO1l5RNIGnMZixOVs5jqKQpJeH\nAJFrYE97c6FV5JkJdS8sjseiZnzGadWzW5kQ5FhtP4ZXFFyNHYQi2h7/c9bg\nBBomlPPZaqjvAp4DQyzjQjYGL6lfYgbogcnX3EHuFQ3DH8Q8vE2fyXNgvwrR\nQnjAhCI7YWMGABU2DTK6vtGm3DjaIn+YIQsYhgEObP3RlJuVxay5wo9q8aj3\nVxk4jvuyqoE+ATEvyZ77nqP2Dj+6oZ2vGOOv99PUGH/ycwuIDWtpF8/9+if2\n7WmtlLL0CV/dPGi9Y0Aeg/xyXeU308q94s1/eYZMC5/JvTiJwDzX619nlldG\ndCy6uh3s22G1FDz3CuHdSWKQlMAgxZQdvap4NDmOK4mUDqW/c7/EE99I4LUB\nukE07796pTOLmJ7WFp+0+1hAkD668llMGcUcDNzn8R740BBJ3YWW53wdCUz9\nhqtNApncRGIeme7WDjB+9WvySOJi0kr5BonEz8MOd0VED2Dk0Z3MtcEfrNRK\n5a9+Yf6/BJj9g37E0AZ13ixcbspFlTO/oJMz+1DJTHc5pz+EHgSq1twaaeK8\nkzq4ujCIrGP35i+v3w8yWmHD9KGqXF0AaiwtH2hHv7i1JNfWK8EWnH+BbvqN\nv5uU\r\n=TRUB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHiuri61KJP+l2dO9oYmYGqjyd5PGJQNkiGgFnXAWY0+AiEA83Mpwc1wlEmJ/GrIVVk2ASWZ8bT9/UUWDYU9gd8cmcY="}]},"maintainers":[{"name":"cretezy","email":"charles@cretezy.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-router-sitemap_1.1.5_1535479255359_0.3790395223905456"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-28T18:00:55.198Z","1.1.5":"2018-08-28T18:00:55.466Z","modified":"2022-04-05T01:47:55.415Z"},"maintainers":[{"name":"cretezy","email":"charles@cretezy.com"}],"description":"Module to generate a sitemap for react-router configuration","homepage":"https://github.com/Cretezy/react-router-sitemap#readme","keywords":["react","react-router","sitemap","es2015"],"repository":{"type":"git","url":"git+https://github.com/Cretezy/react-router-sitemap.git"},"author":{"name":"Igor Uvarov","email":"kuflash@ya.ru","url":"http://kuflash.ru"},"bugs":{"url":"https://github.com/Cretezy/react-router-sitemap/issues"},"license":"MIT","readme":"# React Router Sitemap\n\n[![Build Status](https://travis-ci.org/kuflash/react-router-sitemap.svg?branch=master)](https://travis-ci.org/kuflash/react-router-sitemap) [![npm version](https://badge.fury.io/js/react-router-sitemap.svg)](https://badge.fury.io/js/react-router-sitemap)\n\nModule for generating sitemaps using [React Router](https://www.npmjs.com/package/react-router) configuration. Also it can filter paths and replace params (like a `:paramName`) in dynamic paths.\n\n## Install\n\n`npm i --save react-router-sitemap`\n\n## Usage\n\nYou need to have a module with the router configuration. For example:\n\n`router.jsx`\n```js\nimport React from 'react';\nimport { Route } from 'react-router';\n\nexport default (\n\t<Route>\n\t\t<Route path='/' />\n\t\t<Route path='/about' />\n\t\t<Route path='/projects' />\n\t\t<Route path='/contacts' />\n\t\t<Route path='/auth' />\n\t</Route>\n);\n```\nAnd you need to create a script which will run from the command line or on the server.\n\n_Please note that in this case you need a module 'babel-register' to work with the ES2105 syntax and `.jsx` format._\n\n`sitemap-builder.js`\n\n```js\nrequire('babel-register');\n\nconst router = require('./router').default;\nconst Sitemap = require('../').default;\n\n(\n\tnew Sitemap(router)\n\t\t.build('http://my-site.ru')\n\t\t.save('./sitemap.xml')\n);\n```\n\nIt's a minimal example. After running the script, a `sitemap.xml` file will be created, which includes all paths, described in the configuration of `react-router`.\n\nA more detailed example can be found in the `example` directory. You can also explore the details of the [API](API.md).\n\n\n## [API](API.md)\nExplore the public API for using the module.\n\n## License\n\nReact Router Sitemap is freely distributable under the terms of the MIT license.\n\nMIT License\n\nCopyright (c) 2016 kuflash\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md"}