Skip to content
JS
Package

option

The option type, also known as the maybe type, for JavaScript

v0.2.4, 23 Jun 2017BSD-2-Clause-Types: None
$ npm install option

Key numbers

As of 25 Sept 2026
Weekly downloads
5.9m
+661% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
9 years ago
v0.2.4
GitHub stars
24
7 forks
Open issues / PRs
1 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6m8mSept 2025Mar 2026Sept 2026High 7.6m (25 Aug 2026)Low 765.8k (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.

5,905,764 downloads last week, 29,091,637 in the last month. The 12-month change of +661% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
0.2.4, 23 Jun 20179 years ago
First published
25 Aug 2012
Last push to GitHub
9 Nov 20173,241 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
11

Major versions

  1. v0 first release 0.2.0, 25 Aug 2012

Recent releases

VersionPublished
0.2.423 Jun 2017
0.2.325 Feb 2016
0.2.212 Jun 2015
0.2.114 Apr 2013
0.2.025 Aug 2012
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install option
  • jsDelivrhttps://cdn.jsdelivr.net/npm/option@0.2.4/
  • unpkghttps://unpkg.com/option@0.2.4/
  • esm.shhttps://esm.sh/option@0.2.4
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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