Site Tools


tech_public:webdev (text)

This is an old revision of the document!


Website dev

  

Color contrast check

Add back to top

Export icon list from Fontawesome


https://fontawesome.com/changelog

https://github.com/mackilroy007/font-awesome-v6

Using Node js:

  1. download icons.json file
  2. execute following code in node js:
var json = require("{file-path}/icons.json"); 
var FA6Json = {}; Object.keys(json).forEach(iconName => { const icon = json[iconName]; icon.styles.forEach(style => { if (!FA6Json[style]) { FA6Json[style] = []; } FA6Json[style].push(`fa-${style} fa-${iconName}`); }) }); require("fs").writeFile("{file-path}/FA6icons.json", JSON.stringify(FA6Json,null,2), () => {});
tech_public/webdev.1734392060.txt.gz · Last modified: by jasonwch (text)

Top ↑