Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// http: compatData.http,
// javascript: compatData.javascript,
// mathml: compatData.mathml,
// svg: compatData.svg,
// webdriver: compatData.webdriver,
// webextensions: compatData.webextensions
// }
const payload = {
api: compatData.api,
browsers: compatData.browsers,
css: compatData.css,
html: compatData.html,
http: compatData.http,
javascript: compatData.javascript,
mathml: compatData.mathml,
svg: compatData.svg,
webdriver: compatData.webdriver,
webextensions: compatData.webextensions
}
fs.writeFile(
path.resolve(
__dirname,
'..',
'public',
'data.json'
),
JSON.stringify(payload, null, 2),
err => {
if (err) {
console.error(err)