{"library":"feature-policy","type":"library","category":null,"description":"This package, `feature-policy` (current stable version 0.6.0), provides Express/Connect middleware for setting the `Feature-Policy` HTTP header. This header allows web developers to selectively enable or disable browser features and APIs for a document or specific frames, helping to enhance security and user experience by preventing misuse of powerful features like geolocation or camera access. Key differentiators include its simple, object-based configuration API, which supports a wide array of browser features such as `fullscreen`, `vibrate`, `payment`, and `syncXhr`, making it easy to manage permissions. However, it is crucial for users to understand that the `Feature-Policy` header itself has been deprecated by browsers in favor of the more modern `Permissions-Policy`. Consequently, this module is now in maintenance mode, meaning it will continue to be supported for existing implementations but will not receive new features or updates to align with future browser developments. Its release cadence is effectively halted, focusing only on critical bug fixes to ensure stability for current users. Users are advised to consider migrating to `Permissions-Policy` for new projects or plan for eventual migration.","language":"javascript","status":"maintenance","version":"0.6.0","tags":["javascript","helmet","security","express","connect","feature-policy","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install feature-policy","imports":["import featurePolicy from 'feature-policy';","const featurePolicy = require('feature-policy');","import type { FeaturePolicyOptions } from 'feature-policy';"]},{"cmd":"yarn add feature-policy","imports":[]},{"cmd":"pnpm add feature-policy","imports":[]}],"homepage":null,"github":"https://github.com/helmetjs/feature-policy","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/feature-policy","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/feature-policy/compatibility"}}