{"package":"restricted-input","ecosystem":"npm","latest_version":"4.2.0","description":"Restrict inputs to certain valid characters (e.g. formatting phone or card numbers)","license":"MIT","license_risk":"permissive","commercial_use_notes":"Permissive: commercial closed-source use OK; preserve the copyright notice.","homepage":"https://github.com/braintree/restricted-input","repository":"https://github.com/braintree/restricted-input","downloads_weekly":927890,"health":{"score":79,"risk":"moderate","breakdown":{"maintenance":25,"popularity":14,"security":25,"maturity":12,"community":3},"deprecated":false,"max_score":100},"vulnerabilities":{"count":0,"critical":0,"high":0,"medium":0,"low":0,"details":[]},"versions":{"latest":"4.2.0","total_count":42,"recent":["2.0.1","2.0.2","2.1.0","2.1.1","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","4.0.0","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.2.0"]},"metadata":{"deprecated":false,"deprecated_message":null,"maintainers_count":1,"first_published":"2016-05-27T22:29:58.337Z","last_published":"2026-03-04T20:29:57.483Z","dependencies_count":1,"dependencies":["@braintree/browser-detection"]},"github_stats":{"stars":73,"forks":26,"open_issues":4,"is_archived":false,"pushed_at":"2026-05-01T15:53:09Z","subscribers_count":19},"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":"4.2.0","version_hint":null,"summary":"restricted-input@4.2.0 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/restricted-input","tokens_estimated":12,"use_when":"you only need to know if the package exists (hallucination guard)"},{"endpoint":"/api/health/npm/restricted-input","tokens_estimated":80,"use_when":"you only need a 0-100 score for go/no-go (>=70 = safe)"},{"endpoint":"/api/prompt/npm/restricted-input","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 6 times in 60s. Save bandwidth + tokens with POST /api/check_bulk (1 round-trip for N pkgs)."},"requested_version":null,"_cache":"miss","_response_ms":1469,"_powered_by":"depscope.dev — free package intelligence for AI agents","typosquat":{"is_suspected":false},"maintainer_trust":{"available":false},"malicious":{"is_malicious":false},"scorecard":{"available":false},"quality":{"available":false},"version_history_summary":{"total_versions":20,"first_release_age_days":3628,"last_release_days_ago":60,"avg_days_between_releases":191,"release_velocity":"active"}}