gulp-octicons
Insert octiocns svg path into html file. You can see icons that you can insert at this page.
Install
npm install gulp-octicons --save-dev
Insert octicons
When you want to insert an icons named __icon_name__
,
use special comments as below.
<!-- octicons:__icon_name__ --><!-- endocticons -->
Icon svg rendered with octiocns.__icon_name__.toSVG()
will be inserted.
See this section for more detail about toSVG()
.
Example
Task
var octicons = ; gulp;
Before
<!-- octicons:arrow-up --><!-- endocticons --> <!-- octicons:arrow-down --><!-- endocticons -->
After
<!-- octicons:arrow-up --><!-- endocticons --> <!-- octicons:arrow-down --><!-- endocticons -->
Future Works
- Take options that octions do
- Other formats
- Support Node 4 and 5
License
MIT