Key numbers
As of 25 Sept 2026
- Weekly downloads
- 342.8k
- +4% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 6 years ago
- v2.3.0
- GitHub stars
- 76
- 7 forks
- Open issues / PRs
- 9 / 12
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
342,808 downloads last week. The 12-month change of +4% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 019 in total
- Latest version
- 2.3.0, 22 Jul 20206 years ago
- First published
- 17 Feb 2015
- Last push to GitHub
- 22 Jun 20221,556 days before the snapshot
- Repository archived
- No
- Open issues
- 9
- Open pull requests
- 12
- Commits, last 52 weeks
- 0
- Dependents on npm
- -
Major versions
- v2 first release 2.0.0, 21 Mar 2018
- v1 first release 1.0.1, 17 May 2015
- v0 first release 0.1.0, 17 Feb 2015
Recent releases
| Version | Published |
|---|---|
| 2.3.0 | 22 Jul 2020 |
| 2.1.1 | 14 Apr 2019 |
| 2.1.0 | 14 Apr 2019 |
| 2.0.0 | 21 Mar 2018 |
| 1.3.1 | 21 Mar 2018 |
| 1.3.0 | 20 Mar 2018 |
| 1.2.1 | 1 Dec 2016 |
| 1.2.0 | 6 Oct 2016 |
| 1.1.2 | 22 Mar 2016 |
| 1.1.1 | 10 Feb 2016 |
| 1.0.1 | 17 May 2015 |
| 0.1.7 | 11 Mar 2015 |
| 0.1.6 | 10 Mar 2015 |
| 0.1.5 | 10 Mar 2015 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 37 kB
- Dependencies (0)
- None
npm install optional-js- jsDelivr
https://cdn.jsdelivr.net/npm/optional-js@2.3.0/ - unpkg
https://unpkg.com/optional-js@2.3.0/ - esm.sh
https://esm.sh/optional-js@2.3.0
Indexability: Not indexed (discovery only): no category.