miguel-a-calles-mba / feature-policy-builder

Feature policy builder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature-policy-builder

Feature policy builder.

Example

const builder = require('feature-policy-builder');

const featurePolicyDirectives = {
    accelerometer: ["'none'"],
    ambientLightSensor: ["'none'"],
    'display-capture': ["'none'"],
};

console.log(`Feature-Policy: ${builder(featurePolicyDirectives)}`);
// Feature-Policy: accelerometer 'none'; ambient-light-sensor 'none'; display-capture 'none'

About

Feature policy builder.

License:MIT License


Languages

Language:JavaScript 100.0%