芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/lot.mgaplay.com.br/vendor/emojione/emojione/lib/emojione-awesome/generate.js
var fs = require('fs'); // Load emojis var emojis = JSON.parse(fs.readFileSync('../../emoji_strategy.json'), 'utf8'); // Generate .scss mapping var mapping = ''; for (var key in emojis) { if (emojis.hasOwnProperty(key)) mapping += '"' + emojis[key].unicode + '": "' + key + "\",\n"; } mapping = "$emoji-map: (\n" + mapping; mapping = mapping.substr(0, mapping.length - 2) + "\n);"; // Write .scss file var output_path = '../../lib/emojione-awesome/_emojione-awesome.map.scss'; fs.writeFileSync(output_path, mapping); console.log('Generated ' + output_path);