Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Modernizr = require('modernizr');
// `minify` isn't really an option, in the modernizr-the-library sense. however,
// it is treated the same as one in the modernizr-the-download-page sense.
// Rather than make this change every time we need to use the options, we have this
// neat lil convenience wrapper around it
var options = Modernizr.options().sort(function(a, b) {
return a.name > b.name ? 1 : -1;
}).concat({
name: 'minify',
property: 'minify',
group: 'minify',
checked: true
},{
name: 'Add CSS classes',
property: 'setClasses',
checked: true
});
module.exports = options;
'use strict';
var _ = require('../../frontend/js/lodash.custom.js');
var modernizr = require('modernizr');
var marked = require('marked');
var path = require('path');
var fs = require('fs');
var he = require('he');
var base = path.join(__dirname, '..', '..');
var intro = fs.readFileSync(path.join(base, 'docs', 'intro.md'));
var options = modernizr.options(undefined, true);
options = _.merge(options, _.map(options, function(option) {
return _.chain(option.tags)
.map(function(tag) {
return _.chain(tag)
.values()
.filter()
.value();
})
.zipObject()
.value();
}));
var parsedDocs = _.chain(options)
.map(function(doc) {