We are all to used to use different kind of emojies. Each of them has some code which transforms to icon. So what about transform typical words in text to icon? This tool is all about it! ☀️ 🏄
This is a JS library which helps you to add company icons in your text. Icons are using from cool repository 🍒 🚀 - simple-icons
Where I can use it?
This tool can work as with plain text and with html without any modification of DOM. Replace only those
#text nodes where finds brand names.
You can try BrandifyJS web interface: greybax.github.io/brandifyjs
How to Use:
npm install brandifyjs
const brandify = ;let myText = `This is a text to brand icons replaced for lot of famous brands companies, technologies and tools...Twitter, Github and more ...Thanks for cool icons to simple icons!`;let newText = ;
This is a text to brand icons replaced for lot of famous brands companies, tehnologies and tools..., and more ...Thanks for cool icons to !
Just replace all matched text on their icons
Will insert icons before matched text
Will insert icons after matched text
Clone the repo.
// install npm scripts npm install // create modified dist/simple-icons.json npm run init // create browser script in dist/brandifyjs-browser.js npm run browserify // starts lite-server with index.html npm run dev
// run mocha tests from test.js npm test
MIT © Aleksandr Filatov