{"library":"koa-node-resolve","type":"library","category":null,"description":"This Koa middleware dynamically rewrites Node.js bare module specifiers (e.g., `import { foo } from \"stuff\";`) into relative paths (e.g., `./node_modules/stuff/index.js`) on the fly, directly within HTML and JavaScript files served by the Koa server. It's specifically designed to facilitate modern JavaScript module development in browsers without requiring a separate build step, by resolving module paths using the same rules as Node.js `require()`. The package is currently in a pre-release state (version `1.0.0-pre.9`), indicating ongoing active development towards a stable `1.0.0` release, though no specific release cadence is published. Its key differentiator lies in its real-time, on-demand transformation capabilities, making it highly suitable for rapid iteration in development servers, integrated testing environments (such as those using Karma), and simple static file serving. However, it explicitly carries a significant caveat: it is *not* recommended for high-volume production use due to the inherent performance overhead associated with parsing and transforming HTML and JavaScript content on every request. This focus on development efficiency over production performance is a core design principle.","language":"javascript","status":"active","version":"1.0.0-pre.9","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-node-resolve","imports":["import { nodeResolve } from 'koa-node-resolve';","const { nodeResolve } = require('koa-node-resolve');","import { removeFakeRootElements } from 'koa-node-resolve/lib/support/parse5-utils';"]},{"cmd":"yarn add koa-node-resolve","imports":[]},{"cmd":"pnpm add koa-node-resolve","imports":[]}],"homepage":null,"github":"https://github.com/PolymerLabs/koa-node-resolve","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-node-resolve","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/koa-node-resolve/compatibility"}}