Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example appears to be out of date #25

Closed
Sebazzz opened this issue Mar 9, 2023 · 2 comments
Closed

Example appears to be out of date #25

Sebazzz opened this issue Mar 9, 2023 · 2 comments

Comments

@Sebazzz
Copy link

Sebazzz commented Mar 9, 2023

The Example in the README appears to be out of date.

These imports don't exist in utils 2.x:

import { promises as fs } from 'fs';
import { importDirectory } from '@iconify/tools/lib/import/directory';
import { cleanupSVG } from '@iconify/tools/lib/svg/cleanup';
import { runSVGO } from '@iconify/tools/lib/optimise/svgo';
import { parseColors, isEmptyColor } from '@iconify/tools/lib/colors/parse';

What are the new ones? 😊

@cyberalien
Copy link
Member

They do exist.

utils 2.x

Maybe you have confused Iconify Utils and Iconify Tools? These are different packages for different purposes.

@Sebazzz
Copy link
Author

Sebazzz commented Mar 10, 2023

You are totally right. I'm not sure how I ended up here!

@Sebazzz Sebazzz closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants