{"package":"ansi-styles","ecosystem":"npm","latest_version":"6.2.3","description":"ANSI escape codes for styling strings in the terminal","license":"MIT","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://github.com/chalk/ansi-styles#readme","repository":"https://github.com/chalk/ansi-styles","downloads_weekly":620040900,"health":{"score":79,"risk":"moderate","breakdown":{"maintenance":15,"popularity":20,"security":25,"maturity":15,"community":4,"popularity_floor":0},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"6.2.3","total_count":28,"recent":["2.1.0","2.2.1","3.0.0","3.1.0","3.2.0","3.2.1","4.0.0","4.1.0","4.2.0","4.2.1","4.3.0","5.0.0","5.1.0","5.2.0","6.0.0","6.1.0","6.1.1","6.2.0","6.2.1","6.2.3"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":1,"first_published":"2013-07-31T23:00:29.145Z","last_published":"2025-09-08T14:52:15.705Z","dependencies_count":0,"dependencies":[]},"github_stats":{"stars":462,"forks":84,"open_issues":0,"is_archived":false,"pushed_at":"2026-02-27T04:47:01Z","subscribers_count":9},"bundle":{"size_kb":2.7,"gzip_kb":1.2,"dependency_count":0,"has_js_module":false,"has_side_effects":true,"scoped":false,"source":"bundlephobia"},"typescript":{"score":10,"has_types":true,"types_source":"bundled","types_package":null},"known_issues":{"bugs_count":3,"bugs_severity":{"medium":3},"status_breakdown":{"fixed":2,"open":1},"link":"/api/bugs/npm/ansi-styles?version=6.2.3","scope":"version","details":[{"title":"Ambiguous error when keyword doesn't exist","severity":"medium","status":"fixed","affected_version":null,"fixed_version":null,"url":"https://github.com/chalk/ansi-styles/issues/36"},{"title":"blackBright doesn't exist","severity":"medium","status":"fixed","affected_version":null,"fixed_version":null,"url":"https://github.com/chalk/ansi-styles/issues/48"},{"title":"Malicious code in ansi-styles (npm)","severity":"medium","status":"open","affected_version":null,"fixed_version":null,"url":"https://www.aikido.dev/blog/npm-debug-and-chalk-packages-compromised"}]},"historical_compromise":null,"recommendation":{"action":"safe_to_use","issues":[],"use_version":"6.2.3","version_hint":null,"summary":"ansi-styles@6.2.3 is safe to use (health: 79/100)"},"version_scoped":null,"_meta":{"endpoint":"check","tier":"full","philosophy":"DepScope is free. Use the cheapest endpoint that answers your real question.","cheaper_alternatives":[{"endpoint":"/api/exists/npm/ansi-styles","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/ansi-styles","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/ansi-styles","tokens_estimated":280,"use_when":"you want a plain-text LLM-friendly brief instead of JSON"},{"endpoint":"POST /api/check_bulk","tokens_estimated":60,"use_when":"you have 5+ packages to check; sends one round-trip instead of N"}],"docs":"https://depscope.dev/integrate","hint_bulk":"You've called /api/check 74 times in 60s. Save bandwidth + tokens with POST /api/check_bulk (1 round-trip for N pkgs)."},"requested_version":null,"_cache":"hit","_response_ms":0,"_powered_by":"depscope.dev — free package intelligence for AI agents","typosquat":{"is_suspected":false},"maintainer_trust":{"available":true,"bus_factor_3m":1,"active_contributors_12m":3,"primary_author_ratio":0.3333333333333333,"owner_account_age_days":3952,"is_archived":false,"stars":457,"alerts":["single_active_maintainer_3m"]},"malicious":{"is_malicious":false,"advisory_id":"MAL-2025-46967","summary":"Malicious code in ansi-styles (npm)","action":"use_with_caution","affected_versions":["6.2.2"],"latest_version_safe":true,"note":"Advisory MAL-2025-46967: versions 6.2.2 are compromised. Current latest (6.2.3) is NOT affected — safe to install. Avoid the listed versions."},"scorecard":{"available":true,"score":3.9,"tier":"weak"},"quality":{"available":true,"criticality_score":0.775,"criticality_tier":"critical","velocity_pct":2.4,"velocity_trend":"stable","publish_security":"signed"},"breaking_changes_link":{"url":"/api/breaking/npm/ansi-styles","count":14,"hint":"Use this endpoint to get version-pair breaking changes + migration hints."},"co_used_with":[{"package":"AsyncSwiftKits/AsyncTesting","occurrences":5},{"package":"CleanCocoa/CrashReporter","occurrences":5}],"version_history_summary":{"total_versions":20,"first_release_age_days":4732,"last_release_days_ago":311,"avg_days_between_releases":249,"release_velocity":"moderate"}}