{"package":"string-collapse-white-space","ecosystem":"npm","latest_version":"11.2.7","description":"Replace chunks of whitespace with a single spaces","license":"MIT","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://codsen.com/os/string-collapse-white-space","repository":"https://github.com/codsen/codsen","downloads_weekly":2561,"health":{"score":75,"risk":"moderate","breakdown":{"maintenance":25,"popularity":6,"security":25,"maturity":15,"community":4},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"11.2.7","total_count":221,"recent":["11.0.15","11.0.16","11.0.17","11.0.18","11.0.19","11.0.22","11.0.23","11.0.32","11.0.33","11.0.34","11.1.0","11.1.3","11.2.0","11.2.1","11.2.2","11.2.3","11.2.4","11.2.5","11.2.6","11.2.7"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":1,"first_published":"2017-09-02T14:39:24.037Z","last_published":"2026-09-21T19:39:50.277Z","dependencies_count":3,"dependencies":["ranges-push","codsen-utils","ranges-apply"]},"github_stats":{"stars":213,"forks":25,"open_issues":20,"is_archived":false,"pushed_at":"2026-01-15T21:09:20+00:00"},"bundle":null,"typescript":{"score":10,"has_types":true,"types_source":"bundled","types_package":null},"known_issues":{"bugs_count":0,"bugs_severity":{},"status_breakdown":{},"link":null,"scope":"none"},"historical_compromise":null,"recommendation":{"action":"safe_to_use","issues":[],"use_version":"11.2.7","version_hint":null,"summary":"string-collapse-white-space@11.2.7 is safe to use (health: 75/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/string-collapse-white-space","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/string-collapse-white-space","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/string-collapse-white-space","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"},"_cache":"hit","_response_ms":0}