You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
Lachlan McDonald edited this page May 21, 2018
·
6 revisions
Write SCSS to a file
constfs=require('fs');const{ Saxicon }=require('saxicon');// Initialise a new Saxicon instanceconstsax=newSaxicon();// Parse SVG filesconstresult=sax.parseSync(['path/to/icon1.svg','path/to/icon2.svg','path/to/icon3.svg',]);// Write SCSS to filefs.writeFile('saxicon.scss',result.scss(),(err)=>{if(err){thrownewError(err);}});