webamp/scripts/createSearchIndex.js
2018-11-26 23:19:52 -08:00

9 lines
222 B
JavaScript

const skins = require("../src/skins.json");
const indexes = [];
Object.entries(skins).forEach(([hash, { fileName }]) => {
indexes.push({ objectID: hash, fileName });
});
console.log(JSON.stringify(indexes, null, 2));