Skip to content
JS
Package

restricted-input

Restrict inputs to certain valid characters (e.g. formatting phone or card numbers)

v4.2.0, 4 Mar 2026MITCommonJSTypes: Bundled
$ npm install restricted-input

Key numbers

As of 25 Sept 2026
Weekly downloads
718.2k
+109% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 months ago
v4.2.0
GitHub stars
73
28 forks
Open issues / PRs
0 / 5
Contributors
-
Commits, last 52 weeks
44

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.1m (25 Aug 2026)Low 197.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

718,187 downloads last week, 3,586,223 in the last month. The 12-month change of +109% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
142 in total
Latest version
4.2.0, 4 Mar 20266 months ago
First published
27 May 2016
Last push to GitHub
20 Jun 202696 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
5
Commits, last 52 weeks
44
Dependents on npm
12

Major versions

  1. v4 first release 4.0.0, 5 Dec 2023
  2. v3 first release 3.0.0, 10 Jul 2020
  3. v2 first release 2.0.0, 14 May 2019
  4. v1 first release 1.0.0, 27 May 2016

Recent releases

VersionPublished
4.2.04 Mar 2026
4.1.426 Feb 2025
4.1.325 Feb 2025
4.1.225 Feb 2025
4.1.124 Feb 2025
4.1.021 Feb 2025
4.0.330 Jan 2025
4.0.217 Dec 2024
4.0.110 Apr 2024
4.0.05 Dec 2023
3.0.518 Mar 2022
3.0.425 Jun 2021
3.0.319 Aug 2020
3.0.230 Jul 2020
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
221 kB
Dependencies (1)
@braintree/browser-detection
npm install restricted-input
  • jsDelivrhttps://cdn.jsdelivr.net/npm/restricted-input@4.2.0/
  • unpkghttps://unpkg.com/restricted-input@4.2.0/
  • esm.shhttps://esm.sh/restricted-input@4.2.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.