{"package":"code","ecosystem":"npm","latest_version":"5.2.4","description":"assertion library","license":"BSD-3-Clause","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://github.com/hapijs/code#readme","repository":"https://github.com/hapijs/code","downloads_weekly":0,"health":{"score":14,"risk":"critical","breakdown":{"maintenance":0,"popularity":0,"security":25,"maturity":15,"community":4},"deprecated":true,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"5.2.4","total_count":30,"recent":["2.0.0","2.0.1","2.1.0","2.1.1","2.2.0","2.2.1","2.3.0","3.0.0","3.0.1","3.0.2","4.0.0","4.1.0","5.0.0","5.1.0","5.1.2","5.2.0","5.2.1","5.2.2","5.2.3","5.2.4"]},"metadata":{"deprecated":true,"deprecated_message":"This module has moved and is now available at @hapi/code. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.","maintainers_count":4,"first_published":"2012-04-12T06:44:31.278Z","last_published":"2018-11-22T07:33:35.465Z","dependencies_count":1,"dependencies":["hoek"]},"github_stats":null,"bundle":{"size_kb":19.8,"gzip_kb":6.4,"dependency_count":1,"has_js_module":false,"has_side_effects":true,"scoped":false,"source":"bundlephobia"},"typescript":{"score":7,"has_types":true,"types_source":"definitely-typed","types_package":"@types/code"},"known_issues":{"bugs_count":0,"bugs_severity":{},"status_breakdown":{},"link":null,"scope":"none"},"historical_compromise":null,"recommendation":{"action":"find_alternative","issues":["Moderate health score (14/100) — verify manually","Package is deprecated"],"use_version":"5.2.4","version_hint":null,"summary":"code is deprecated — find an alternative"},"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/code","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/code","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/code","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"},"requested_version":null,"_cache":"miss","_response_ms":542,"_powered_by":"depscope.dev — free package intelligence for AI agents","typosquat":{"is_suspected":true,"targets":[{"legitimate_package":"clone","distance":2,"reason":"close_name"},{"legitimate_package":"cors","distance":2,"reason":"adjacent_swap_or_double"},{"legitimate_package":"cmdk","distance":2,"reason":"adjacent_swap_or_double"}]},"maintainer_trust":{"available":false},"malicious":{"is_malicious":false},"scorecard":{"available":false},"quality":{"available":false},"version_history_summary":{"total_versions":20,"first_release_age_days":5135,"last_release_days_ago":2720,"avg_days_between_releases":270,"release_velocity":"stale"}}