const dataFile = './_data/simple-icons.json';
const data = require(dataFile);
const fs = require('fs');

let Icons = {};

data.icons.forEach(i => {
  i.name = i.title.toLowerCase().replace(/[^a-z0-9]/gim, '');
  i.svg = fs.readFileSync(`./icons/${i.name}.svg`, 'utf8');
  Icons[i.name] = i
});

module.exports = Icons;

const dataFile = './_data/simple-icons.json';
const data = require(dataFile);
const fs = require('fs');

const icons = {};

data.icons.forEach(i => {
  const filename = i.title.toLowerCase()
    .replace(/\+/g, "plus")
    .replace(/[ .\-!’]/g, '');
  i.svg = fs.readFileSync(`./icons/${filename}.svg`, 'utf8');
  icons[i.title] = i
});

module.exports = icons;

Update index.js to use proper title->filename conversion