It is a simple webservice for plugin Iconns of Adobe XD.
Currently, the webservice research only in IconFinder Plataform. Only free icons is researched and returner.
The dependencie SVGO is used for optimize the file and convert all nodes in paths. This is requered becouse the Adobe XD not suport imports of SVG file in artboard through plugins.
The response is a json array of objects
{
"download_url": "/* url for download the icon optimized in SVG format. */",
"preview_url": "/* url for request a preview file for this icon. */"
}
For dowload a icon you should be meke a request for this webservice host with the value in download_url
.
The response is a text body with svg file content.
- For complex ions the result cannot be exactly the expected.
The master branch webservice is deployed on Heroku Plataform in a free Dino. You can use: https://iconns-ws.herokuapp.com/
You need pass the envs var: ICON_FINDER_CLIENT_ID
and ICON_FINDER_CLIENT_SECRET
. For consume the Iconfinder api.
npm start
: run with directally in node enginenpm start:dev
: run with global instalation ofnodemon
npm test
: run the mocha tests with--watch
flag