{"_id":"@abnerlin/express-routes-loader","_rev":"13-7bbb730d79a01dee48f80ce622fed2ba","name":"@abnerlin/express-routes-loader","time":{"modified":"2022-04-04T10:59:58.978Z","created":"2018-01-24T06:44:46.830Z","1.0.0":"2018-01-24T06:44:46.830Z","1.0.1":"2018-01-24T08:34:03.116Z","1.0.2":"2018-01-24T08:46:45.418Z","2.0.0":"2018-01-24T08:50:56.752Z","2.0.0-rc.1":"2018-01-24T08:56:10.881Z","2.0.0-readme":"2018-01-24T09:13:08.190Z","2.0.1-readme":"2018-01-24T09:26:39.398Z"},"maintainers":[{"email":"shaoyang0805@gmail.com","name":"abnerlin"}],"dist-tags":{"latest":"2.0.1-readme"},"versions":{"2.0.0":{"name":"@abnerlin/express-routes-loader","version":"2.0.0","description":"Load express route by given .js path, and the route file must export the property \"root\" which is the url path. This tool also provide the feature to load all routes in directory which provided as the first argument.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["routes","express","loader"],"author":{"name":"AbnerLin"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/AbnerLin/express-routes-loader.git"},"bugs":{"url":"https://github.com/AbnerLin/express-routes-loader/issues"},"homepage":"https://github.com/AbnerLin/express-routes-loader#readme","gitHead":"8fbc0494b6f7dc12407160a1413273147c872a1c","_id":"@abnerlin/express-routes-loader@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"abnerlin","email":"shaoyang0805@gmail.com"},"dist":{"integrity":"sha512-6nI00uDlmOK/zKBMpOEldbFBTpwIGQe7q3gq75Pws00wkuClbxd9bIGsEyjnmxh2+uzTw3rRC1yru9EVtez5QA==","shasum":"f4454427dea9d0e96a7c101ff8864f1cc299a563","tarball":"https://registry.npmjs.org/@abnerlin/express-routes-loader/-/express-routes-loader-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRHSJgZYlbOUOjcHgO2yvaLwp1ka3AUXdphSQEuB89fAiEAhBoZfvSYINE0SskhXjexWYrhv7bmp0vqijN4YqNR1Kg="}]},"maintainers":[{"email":"shaoyang0805@gmail.com","name":"abnerlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-routes-loader-2.0.0.tgz_1516783856656_0.19873926416039467"},"directories":{}},"2.0.0-rc.1":{"name":"@abnerlin/express-routes-loader","version":"2.0.0-rc.1","description":"Load express route by given .js path, and the route file must export the property \"root\" which is the url path. This tool also provide the feature to load all routes in directory which provided as the first argument.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["routes","express","loader"],"author":{"name":"AbnerLin"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/AbnerLin/express-routes-loader.git"},"bugs":{"url":"https://github.com/AbnerLin/express-routes-loader/issues"},"homepage":"https://github.com/AbnerLin/express-routes-loader#readme","gitHead":"13c64e93f4c8e80b4f7e2bcafe196b2635290e27","_id":"@abnerlin/express-routes-loader@2.0.0-rc.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"abnerlin","email":"shaoyang0805@gmail.com"},"dist":{"integrity":"sha512-+DzKJOTWdGLwGD/VHsx4u+yUNlpY3skiijE+zEbEfoH6tfAtOjyIGuXOBtTaOaGUgIwEp6EoLdbJYKuWPsC/Zg==","shasum":"15029c78e4fca105f30cd01ce5637ed6b7da5227","tarball":"https://registry.npmjs.org/@abnerlin/express-routes-loader/-/express-routes-loader-2.0.0-rc.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzFD/z2LVv2QShjiZDgZEifv79bRKtPlhtC4EHJLyCkgIhAIc5svkvN9aRJ/4j5d1DG4HFY4z5fSLW5hqpCWAaQhVk"}]},"maintainers":[{"email":"shaoyang0805@gmail.com","name":"abnerlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-routes-loader-2.0.0-rc.1.tgz_1516784170797_0.35528291715309024"},"directories":{}},"2.0.1-readme":{"name":"@abnerlin/express-routes-loader","version":"2.0.1-readme","description":"Load express route by given .js path, and the route file must export the property \"root\" which is the url path. This tool also provide the feature to load all routes in directory which provided as the first argument.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["routes","express","loader"],"author":{"name":"AbnerLin"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/AbnerLin/express-routes-loader.git"},"bugs":{"url":"https://github.com/AbnerLin/express-routes-loader/issues"},"homepage":"https://github.com/AbnerLin/express-routes-loader#readme","gitHead":"8e645268ff430734702fbf0331c38f257ee8ee9f","_id":"@abnerlin/express-routes-loader@2.0.1-readme","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"abnerlin","email":"shaoyang0805@gmail.com"},"dist":{"integrity":"sha512-fpPiqhibYT+FNdMdm/UYEt85xigfZQjhWVs0f6/vzjnF2kDmrtylJY8VuV/Zx//c0NTH9XPjRmmF7dbPUWnuEQ==","shasum":"81872d3d53a0c7748bd6d72a30738cfab97af26d","tarball":"https://registry.npmjs.org/@abnerlin/express-routes-loader/-/express-routes-loader-2.0.1-readme.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF5Z0C/izRGLSLT/nN/DS7Cn4uD6HkqLRVh9wVTZ6H3TAiBW6FvOSo+hNvcqwSpFx5WrgJWLh1Fv3el5zfATuyqZng=="}]},"maintainers":[{"email":"shaoyang0805@gmail.com","name":"abnerlin"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-routes-loader-2.0.1-readme.tgz_1516785999326_0.30259762541390955"}}},"readme":"# Express Routes Loader\n\n    Load all routes in directory.\n\n## Installation\n    \n    npm install @abnerlin/express-routes-loader\n\n\n## Usage\n    \n```\nconst app = express();\nconst expressRouteLoader = require('@abnerlin/express-routes-loader')(app);\n    \n...\n\n```\n\n### Load all routes in direcotry\n\n```\nexpressRouteLoader.dir(path.join(__dirname, 'routes')); // which 'routes' is directory path.\n```\n\n### Load routes with specify file\n\n```\nexpressRouteLoader.file(path.join(__dirname, 'routes', 'auth')); // which 'routes/auth' is file path.\n\n```\n\n### Export url path\n```\nconst express = require('express');\nconst router = express.Router();\n\nrouter.post('/login', function(req, res) {\n        ...\n});\n\nrouter.root = '/auth';  // this is url path which must export.\n\nmodule.exports = router;\n```","readmeFilename":"README.md","description":"Load express route by given .js path, and the route file must export the property \"root\" which is the url path. This tool also provide the feature to load all routes in directory which provided as the first argument.","homepage":"https://github.com/AbnerLin/express-routes-loader#readme","keywords":["routes","express","loader"],"repository":{"type":"git","url":"git+https://github.com/AbnerLin/express-routes-loader.git"},"author":{"name":"AbnerLin"},"bugs":{"url":"https://github.com/AbnerLin/express-routes-loader/issues"},"license":"GPL-3.0"}