2019-03-24 08:28:57 +01:00

9 lines
295 B
JavaScript

var config = require('./config')
module.exports = function makePolicy (options) {
return Object.keys(options.features).map(function (featureKey) {
const dasherizedKey = config.features[featureKey]
return [dasherizedKey].concat(options.features[featureKey]).join(' ')
}).join(';')
}