{"_id":"@axel669/rollup-hono-files","_rev":"2-3ef87370be6f41c0f0ebaa7def88822c","name":"@axel669/rollup-hono-files","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@axel669/rollup-hono-files","version":"0.1.0","keywords":[],"author":{"name":"Axel"},"license":"MIT","_id":"@axel669/rollup-hono-files@0.1.0","maintainers":[{"name":"axel669","email":"axel@axel669.net"}],"dist":{"shasum":"a88b963cff25aed434fe9dce74187ee2d1a05f76","tarball":"https://registry.npmjs.org/@axel669/rollup-hono-files/-/rollup-hono-files-0.1.0.tgz","fileCount":4,"integrity":"sha512-P/xycCOX+1mcAJN0MMDr8m7jJFjke/uvxrTE9mexlJF3etM/bubJ2ZJgY1+0N3+GOk+M55TxgUulSIPIyT2LKg==","signatures":[{"sig":"MEUCIQD+eKsC4jDwZm5/D5AVi0T6aB3dLG5iqf3BL/fV+SBU7AIgDJ5B5tQsH/rnGm2uKuWplF09+5AJL5Sqf0UiXJFkmW0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6207},"main":"./lib/main.js","type":"module","exports":{".":"./lib/main.js"},"gitHead":"55c3a530a3ccf3004166b74e5fd50b10617573c9","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"axel669","email":"axel@axel669.net"},"_npmVersion":"10.2.3","description":"A small library for adding file-based routing into hono routes at bundle time using rollup. The goal was to bring file-based routing to places like Cloudflare Workers and AWS Lambda with a simple, consistent interface.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"fast-glob":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"hono":"^4.4.13","rollup":"^4.18.1","@hono/node-server":"^1.12.0","@rollup/plugin-node-resolve":"^15.2.3"},"peerDependencies":{"hono":"^4.4.13"},"_npmOperationalInternal":{"tmp":"tmp/rollup-hono-files_0.1.0_1721006443254_0.40484358394695286","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@axel669/rollup-hono-files","version":"0.1.1","keywords":[],"author":{"name":"Axel"},"license":"MIT","_id":"@axel669/rollup-hono-files@0.1.1","maintainers":[{"name":"axel669","email":"axel@axel669.net"}],"dist":{"shasum":"c45ccdf2929ea7e47aea8587b7d9301722be09b7","tarball":"https://registry.npmjs.org/@axel669/rollup-hono-files/-/rollup-hono-files-0.1.1.tgz","fileCount":4,"integrity":"sha512-iBPfNRYF+ZMAu+mEQXgJhnCj7Jwghp/uKxIfKFbJmTVy/D4/HtVVk4/USAihyGNuAdazsbNQbg7ghj5eIWawVg==","signatures":[{"sig":"MEYCIQCB16WjlZyIY2EAUqrzDNX+g/2CYDI/Uk5oRstoWt50VQIhAKQoje2drLJcE895l+/XQ+Q5bByL4iKfWPznrZH6s5uN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6178},"main":"./lib/main.js","type":"module","exports":{".":"./lib/main.js"},"gitHead":"51fdf03acd62fce7dbf3c331ace8820cec583704","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"axel669","email":"axel@axel669.net"},"_npmVersion":"10.2.3","description":"A small library for adding file-based routing into hono routes at bundle time using rollup. The goal was to bring file-based routing to places like Cloudflare Workers and AWS Lambda with a simple, consistent interface.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"fast-glob":"^3.3.2"},"_hasShrinkwrap":false,"devDependencies":{"hono":"^4.4.13","rollup":"^4.18.1","@hono/node-server":"^1.12.0","@rollup/plugin-node-resolve":"^15.2.3"},"peerDependencies":{"hono":"^4.4.13"},"_npmOperationalInternal":{"tmp":"tmp/rollup-hono-files_0.1.1_1721025106754_0.8913570122814671","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@axel669/rollup-hono-files","version":"0.1.2","description":"A small library for adding file-based routing into hono routes at bundle time using rollup. The goal was to bring file-based routing to places like Cloudflare Workers and AWS Lambda with a simple, consistent interface.","main":"./lib/main.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"Axel"},"license":"MIT","exports":{".":"./lib/main.js"},"devDependencies":{"@hono/node-server":"^1.12.0","@rollup/plugin-node-resolve":"^15.2.3","hono":"^4.4.13","rollup":"^4.18.1"},"dependencies":{"fast-glob":"^3.3.2"},"peerDependencies":{"hono":"^4.4.13"},"_id":"@axel669/rollup-hono-files@0.1.2","gitHead":"260e1f224bc805ff4a32a0d6bcb982f1ac31db8e","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-SsQieU38TsvKsM8DAHHnC0x2xexL1chcINMApQDH1vORSVCB/5Vr3hXed5MfMENsTwOLxfjfxVL2WqXzqfLg1Q==","shasum":"a11ecf56f2dbc28de55d4855615e8081480fd9e1","tarball":"https://registry.npmjs.org/@axel669/rollup-hono-files/-/rollup-hono-files-0.1.2.tgz","fileCount":4,"unpackedSize":6989,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHr5/gH9GT+7fVmCtvrDkT4Qw9GbgshKWo7//sFrAjWeAiEAlpVFUrflqcrWDST0S00P6qwhlTrIKCYYyAAAkZ66r8c="}]},"_npmUser":{"name":"axel669","email":"axel@axel669.net"},"directories":{},"maintainers":[{"name":"axel669","email":"axel@axel669.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-hono-files_0.1.2_1725351271194_0.7613189741371615"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-15T01:20:43.112Z","modified":"2024-09-03T08:14:31.507Z","0.1.0":"2024-07-15T01:20:43.409Z","0.1.1":"2024-07-15T06:31:46.941Z","0.1.2":"2024-09-03T08:14:31.328Z"},"author":{"name":"Axel"},"license":"MIT","keywords":[],"description":"A small library for adding file-based routing into hono routes at bundle time using rollup. The goal was to bring file-based routing to places like Cloudflare Workers and AWS Lambda with a simple, consistent interface.","maintainers":[{"name":"axel669","email":"axel@axel669.net"}],"readme":"# Rollup Hono Files\nA small library for adding file-based routing into hono routes at bundle time\nusing rollup. The goal was to bring file-based routing to places like Cloudflare\nWorkers and AWS Lambda with a simple, consistent interface.\n\n## Installation\nAvailable in the standard package managers\n```bash\npnpm add @axel669/rollup-hono-files\n```\n\n## Usage\nThe library should be added as a plugin in the rollup config, in conjunction\nwith a specific change to imports in the code.\n\n### Rollup Config\n```js\nimport fileRoutes from \"@axel669/rollup-hono-files\"\n\nexport default {\n    input: \"main.js\",\n    output: {\n        file: \"build/app.js\",\n        format: \"esm\"\n    },\n    plugins: [\n        // doesn't need a function call\n        fileRoutes\n    ]\n}\n```\n\n### Import in Code\n```js\nimport { serve } from \"@hono/node-server\"\nimport router from \"./routes-dir!routes\"\n\nserve({\n    fetch: router.fetch,\n    port: 45067,\n})\n```\n","readmeFilename":"readme.md"}