{"id":16260004,"url":"https://github.com/cludden/mycro-express","last_synced_at":"2025-04-08T13:49:10.808Z","repository":{"id":57306511,"uuid":"64983782","full_name":"cludden/mycro-express","owner":"cludden","description":"express hook for mycro apps","archived":false,"fork":false,"pushed_at":"2016-08-05T02:55:39.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T12:06:13.455Z","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/cludden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-05T02:54:33.000Z","updated_at":"2016-08-05T02:55:36.000Z","dependencies_parsed_at":"2022-09-06T18:41:55.624Z","dependency_job_id":null,"html_url":"https://github.com/cludden/mycro-express","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fmycro-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fmycro-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fmycro-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cludden%2Fmycro-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cludden","download_url":"https://codeload.github.com/cludden/mycro-express/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247854373,"owners_count":21007322,"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-10-10T16:06:02.103Z","updated_at":"2025-04-08T13:49:10.777Z","avatar_url":"https://github.com/cludden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mycro-express\nan [express]() hook for [mycro](https://github.com/cludden/mycro) apps.\n\n\n\n## Installing\n```bash\nnpm install --save mycro-express\n```\n\n\n## Configuration\n```javascript\n// in /config/express.js\nconst bodyParser = require('body-parser');\nconst cookieParser = require('cookie-parser');\nconst logger = require('morgan');\nconst methodOverride = require('method-override');\n\nmodule.exports = function(mycro) {\n\n    return function configureExpress(app, done) {\n        app.use(logger('dev'));\n        app.use(bodyParser.json({ limit: '500kb' }));\n        app.use(bodyParser.urlencoded({ extended: true }));\n        app.use(methodOverride());\n\n        const env = process.env.NODE_ENV || 'development';\n        app.set('env', env);\n        if (/test/.test(env)) {\n            app.set('debug', true);\n        }\n\n        const port = process.env.PORT || 8080;\n        app.set('port', port);\n\n        process.nextTick(done.bind(null, null, app));\n    }\n}\n```\n\n\n\n## Testing\nrun tests  \n```javascript\nnpm test\n```\n\nrun coverage\n```javascript\nnpm run coverage\n```\n\n\n\n## Contributing\n1. [Fork it](https://github.com/cludden/mycro-express/fork)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n\n\n## License\nCopyright (c) 2016 Chris Ludden.\nLicensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Fmycro-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcludden%2Fmycro-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcludden%2Fmycro-express/lists"}