{"library":"lws-mime","type":"library","category":null,"description":"lws-mime is a middleware designed for the `lws` (local-web-server) ecosystem, enabling developers to customize and override default HTTP response MIME types. Currently stable at version 2.0.0, released in 2017, this package is in maintenance mode, providing a robust and tested solution without frequent updates, but relies on the actively developed `lws` core. Its primary differentiator is deep integration with `lws`, offering programmatic control over how file extensions map to MIME types, thereby ensuring web assets are served with the correct `Content-Type` headers. This is crucial for proper browser rendering and interpretation, especially for custom file formats or when standard MIME sniffing is insufficient. While other general `mime` libraries exist, lws-mime offers a tailored solution for `lws` deployments.","language":"javascript","status":"maintenance","version":"2.0.0","tags":["javascript","lws","lws-middleware","mime"],"install":[{"cmd":"npm install lws-mime","imports":["const lwsMime = require('lws-mime');","const lwsMime = require('lws-mime');\n// Pass directly to lws configuration stack\n{\n  module: lwsMime,\n  options: { 'myext': 'application/x-my-format' }\n}"]},{"cmd":"yarn add lws-mime","imports":[]},{"cmd":"pnpm add lws-mime","imports":[]}],"homepage":null,"github":"https://github.com/lwsjs/mime","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/lws-mime","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/lws-mime/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}