{"id":22793081,"url":"https://github.com/kripod/express-route-fs","last_synced_at":"2025-03-30T17:20:29.420Z","repository":{"id":81143999,"uuid":"43634574","full_name":"kripod/express-route-fs","owner":"kripod","description":"File system-based approach for handling routes in Express.","archived":false,"fork":false,"pushed_at":"2015-10-04T11:45:27.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T16:50:00.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kripod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-04T11:44:25.000Z","updated_at":"2021-08-31T03:17:29.000Z","dependencies_parsed_at":"2023-03-07T09:15:20.423Z","dependency_job_id":null,"html_url":"https://github.com/kripod/express-route-fs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Fexpress-route-fs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Fexpress-route-fs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Fexpress-route-fs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kripod%2Fexpress-route-fs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kripod","download_url":"https://codeload.github.com/kripod/express-route-fs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246351314,"owners_count":20763280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-12T03:17:56.818Z","updated_at":"2025-03-30T17:20:29.398Z","avatar_url":"https://github.com/kripod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-route-fs\n\nFile system-based approach for handling routes in Express.\n\n[![NPM Version][npm-image]][npm-url] [![Travis CI Build][travis-image]][travis-url]\n\n[npm-image]: https://img.shields.io/npm/v/express-route-fs.svg\n[npm-url]: https://npmjs.org/package/express-route-fs\n[travis-image]: https://img.shields.io/travis/kripod/express-route-fs/master.svg\n[travis-url]: https://travis-ci.org/kripod/express-route-fs\n\n## Installation\n\n`$ npm install express-route-fs --save`\n\n## Features\n\n- Automatically load router files from a specifiable directory\n- Easily organize and find your routers by using subdirectories for them\n- Lightweight API\n\n## Usage\n\n__Syntax:__ `routeFs(app[, options])`\n\n1. Define your routes in a directory\n\n\t- It is encouraged to use separate files for each page in order to easily debug routing issues.\n\t- Subdirectories can be used\n\t\t- An `index.js` file of a directory sets the routing base to the directory's path.\n\n2. Initialize the routers automatically\n\n\t```js\n\tvar express = require('express');\n\tvar routeFs = require('express-route-fs');\n\n\tvar app = express();\n\trouteFs(app, { routerDir: __dirname + '/routes' });\n\t```\n\n## Options\n\n| Option      | Description                            | Default   |\n|-------------|----------------------------------------|-----------|\n| `routerDir` | Load router files from this directory. | ./routes/ |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkripod%2Fexpress-route-fs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkripod%2Fexpress-route-fs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkripod%2Fexpress-route-fs/lists"}