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 was archived by the owner on Nov 9, 2022. It is now read-only.
# Universal NPM package for Streamline icons and illustrations
2
+
3
+
This is a small library which downloads Streamline assets you have access to into your local folder so that they can be used in your Javascript project.
4
+
5
+
## How to install
6
+
7
+
`yarn add XXX`
8
+
9
+
## How to use
10
+
11
+
1. Ensure that you have an active Streamline icons or illustrations subscription.
12
+
2. In your project folder create a special `streamlinehq.json` settings file. Fill it with two keys:
13
+
-`families`: an array of strings with names of Streamline icons or illustrations families you want to include in your project.
The package will run a script during installation which will fetch requested icons in a form of SVG files and put them in the package's `images` folder. After this you will be able to import those images as usual in your project.
leterrorMessage=`Got error "${familyResponse.error}" for family ${familyResponse.familyName}.`
83
+
if(familyResponse.statusCode===401){
84
+
errorMessage+=` Error code is 401 which means it's most likely related to the auth token which was provided. Please double check its value by following the instructions in the project's README file.`
0 commit comments