Skip to content
JS
Package

attr-accept

JavaScript implementation of the "accept" attribute for HTML5 <input type="file">

v4.0.0, 2 Aug 2026MITESM + CommonJSTypes: Bundled
$ npm install attr-accept

Key numbers

As of 25 Sept 2026
Weekly downloads
8.9m
+101% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v4.0.0
GitHub stars
120
23 forks
Open issues / PRs
1 / 3
Contributors
-
Commits, last 52 weeks
24

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 12.8m (25 Aug 2026)Low 3m (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.

8,939,479 downloads last week, 45,202,150 in the last month. The 12-month change of +101% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
118 in total
Latest version
4.0.0, 2 Aug 20261 month ago
First published
9 Sept 2015
Last push to GitHub
19 Sept 20265 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
3
Commits, last 52 weeks
24
Dependents on npm
192

Major versions

  1. v4 first release 4.0.0, 2 Aug 2026
  2. v3 first release 3.0.0, 11 Nov 2024
  3. v2 first release 2.0.0, 16 Nov 2019
  4. v1 first release 1.0.0, 9 Sept 2015

Recent releases

VersionPublished
4.0.02 Aug 2026
3.0.011 Nov 2024
2.2.57 Nov 2024
2.2.49 Oct 2024
2.2.39 Oct 2024
2.2.29 Sept 2020
2.2.18 Aug 2020
2.2.030 Jul 2020
2.1.015 Mar 2020
2.0.016 Nov 2019
1.1.318 Jun 2018
1.1.216 Feb 2018
1.1.114 Feb 2018
1.1.01 Nov 2016
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>= 22
Runtimes
-
Unpacked size (npm)
16 kB
Dependencies (0)
None
npm install attr-accept
  • jsDelivrhttps://cdn.jsdelivr.net/npm/attr-accept@4.0.0/
  • unpkghttps://unpkg.com/attr-accept@4.0.0/
  • esm.shhttps://esm.sh/attr-accept@4.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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