Creating an SVG filter icon1 min read

I find it easier tot write an HTML page than create a document or powerpoint presentation. Similarly it is easier for me to write SVG icons in XML rather than create one in photoshop. So here is my simple “SVG filter icon” <svg xmlns=”” xmlns:xlink=”” width=”100″ height=”100″> </svg> Start by opening the svg tag and […]

Creating a simple babel plugin1 min read

What will it do? It will change this let content = include_str(‘path to text file’); to this let content = ‘content of text file’; It works just like the rust-lang include_str!() macro. Code While looping through the AST, our code checks for a function call (CallExpression ) named include_str If one is found, we derive the required […]