Skip to content

Commit

Permalink
update readme, minor in console log
Browse files Browse the repository at this point in the history
  • Loading branch information
tsimenis committed Aug 5, 2019
1 parent c7549ec commit cc1f024
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

> Command line script to export and download icons from a Figma file using the Figma REST api.
## Description
## Description

Running the script will bring up a wizard to fill in the config for fetching the assets. You can also provide the icons-config.json yourself, then the wizard is skipped.
After the config is provided, the figma file is fetched and parsed to find the icons frame, the files are downloaded and put locally in the directory provided in the config.
Expand All @@ -22,7 +22,7 @@
}
```

## Features
## Features

- Wizard to generate config, you will be prompted for any missing key
- icons-config.json is automatically added to .gitignore
Expand All @@ -45,7 +45,7 @@
npm install figma-export-icons --save
```

## Usage
## Usage

If you have installed the module globally:
```sh
Expand All @@ -72,3 +72,6 @@ run it directly with:
npx export-icons
```

## Credits

This script was developed and is part of our tools at [Qikker Online](https://qikkeronline.com).
3 changes: 2 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ function downloadImage (url, name) {
})
.catch((err) => {
spinner.fail()
console.log(name, err.message)
console.log(name)
console.log(err.message)
console.log(err.config.url)
console.log('Please try again')
process.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "figma-export-icons",
"version": "1.0.0",
"version": "1.0.1",
"description": "Script to generate and download icons from a figma file",
"bin": {
"export-icons": "cli.js"
Expand Down

0 comments on commit cc1f024

Please sign in to comment.