Comments (10)
Same here. Console gets completely spammed indefinitely when running a project that uses this library.
from favicons.
@agusterodin see Marak/colors.js#285 (comment) for some possible solutions.
If needed I can prepare the relevant patch.
from favicons.
npx marak-free
from favicons.
I have no idea what that package is. Potentially dangerous given how weird things have been from Marak. Use caution when running commands with npx.
from favicons.
@agusterodin see https://unpkg.com/browse/[email protected]/ and https://unpkg.com/browse/[email protected]/index.js
from favicons.
Other seems to replace colors with chalk e.g. aws/aws-cdk#18329 maybe that's a more reliable solution.
from favicons.
Other seems to replace colors with chalk e.g. aws/aws-cdk#18329 maybe that's a more reliable solution.
Not in most cases as this might lead to breaking changes. The returned strings are a bit different and parsers may behave differently. See for example cli-table/cli-table3#250 (comment)
The easier and faster fix is to pin the version since you can not remove or change already published package versions.
from favicons.
How does pinning solve the issue in a long term? In case of a future security issue you might end up locked, no idea if and how the colors package will be maintained in the future. Trust is easy to destroy and hard to recover 🤷 Just my two cents.
from favicons.
How does pinning solve the issue in a long term? In case of a future security issue you might end up locked, no idea if and how the colors package will be maintained in the future
The easier and faster fix
I never said "longterm" fix. The longterm solution would be to switch to something like chalk
, which is actively maintained.
Alternatively switch to the fork (DABH is one of its previous contributors and maintainers): https://www.npmjs.com/package/@dabh/colors
from favicons.
Ok then we talk about the same thing now :) because what I said initially was
Other seems to replace colors with chalk e.g. aws/aws-cdk#18329 maybe that's a more reliable solution.
where more reliable
means long term/permanent fix and not hotfix.
from favicons.
Related Issues (20)
- npm install favicons make http request to https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz HOT 2
- Unsupported platform coast HOT 2
- Handling a few different image files as favicon and touch icon HOT 3
- 7.0.0 is not working on Windows HOT 5
- [Bug] Favicons generates null value for Android platform HOT 1
- Deprecate yandex icon? HOT 3
- Deprecate Windows 8 tile icons HOT 2
- HTML for apple-touch-startup-image HOT 1
- Add a `cacheBustingQueryParam` option for a cache busting system HOT 1
- Add Release and Changelog HOT 1
- update dependency sharp to v0.32.0 HOT 1
- `icons.<platform>.sizes` weird behaviour HOT 3
- Why there is no way to configure shortcut sizes?
- I want only the icon with the '.ico' extension to be created when it is local HOT 1
- Option to return un-stringified elements for use in plugins and other libraries HOT 3
- Disabling manifest still inject manifest in html HOT 1
- Upgrade to `sharp` 0.33.0 HOT 2
- release 7.1.5 with sharp 0.33.1 will not build HOT 10
- If a relative path is used for icons path, it is transformed to an absolute path HOT 3
- Generation of splash screens for latest Apple devices
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from favicons.