Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
code4fukui
minimist
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
minimist
index.js
on
esm
User selector
All users
Datepicker
All time
Commit history
Commits on Dec 23, 2023
to esm
taisukef
committed
e62c49f
View commit details
Copy full SHA for e62c49f
View code at this point
Browse repository at this point
Commits on Apr 9, 2023
[fix] test for boolean in setarg should include aliases
shadowspawn
authored and
ljharb
committed
fdbb909
View commit details
Copy full SHA for fdbb909
View code at this point
Browse repository at this point
Commits on Apr 8, 2023
[Fix] consider aliases when testing boolean long option value against 'false'
Show description for de53490
shadowspawn
authored and
ljharb
committed
de53490
View commit details
Copy full SHA for de53490
View code at this point
Browse repository at this point
[patch] include aliases when setting defaults for booleans
Show description for 2758c33
shadowspawn
authored and
ljharb
committed
2758c33
View commit details
Copy full SHA for 2758c33
View code at this point
Browse repository at this point
[Refactor] combine `aliasIsBoolean` and external code checks into self-contained `isBooleanKey`
shadowspawn
authored and
ljharb
committed
84316a9
View commit details
Copy full SHA for 84316a9
View code at this point
Browse repository at this point
Commits on Jan 6, 2023
[Fix] Fix long option followed by single dash
Show description for 9ec4d27
shadowspawn
authored and
ljharb
committed
9ec4d27
View commit details
Copy full SHA for 9ec4d27
View code at this point
Browse repository at this point
Commits on Oct 18, 2022
[Fix] opt.string works with multiple aliases
Show description for 2edc957
nhz-io
authored and
ljharb
committed
2edc957
View commit details
Copy full SHA for 2edc957
View code at this point
Browse repository at this point
Commits on Oct 16, 2022
[Fix] Fix handling of short option with non-trivial equals
Show description for 9c7dc85
shadowspawn
authored and
ljharb
committed
9c7dc85
View commit details
Copy full SHA for 9c7dc85
View code at this point
Browse repository at this point
[eslint] more cleanup
ljharb
committed
62fde7d
View commit details
Copy full SHA for 62fde7d
View code at this point
Browse repository at this point
[eslint] fix indentation and whitespace
ljharb
committed
5368ca4
View commit details
Copy full SHA for 5368ca4
View code at this point
Browse repository at this point
Commits on Mar 22, 2022
isConstructorOrProto adapted from PR
substack
committed
c2b9819
View commit details
Copy full SHA for c2b9819
View code at this point
Browse repository at this point
Commits on Mar 10, 2020
even more aggressive checks for protocol pollution
substack
committed
38a4d1c
View commit details
Copy full SHA for 38a4d1c
View code at this point
Browse repository at this point
don't assign onto __proto__
substack
committed
63e7ed0
View commit details
Copy full SHA for 63e7ed0
View code at this point
Browse repository at this point
fix bad boolean regexp
joaomoreno
authored and
substack
committed
ac3fc79
View commit details
Copy full SHA for ac3fc79
View code at this point
Browse repository at this point
Commits on Aug 24, 2015
kv short fix
James Halliday
committed
6bbe145
View commit details
Copy full SHA for 6bbe145
View code at this point
Browse repository at this point
enforce space between arg key and value
okdistribute
committed
86b321a
View commit details
Copy full SHA for 86b321a
View code at this point
Browse repository at this point
Commits on Aug 6, 2015
fix boolean values with multiple aliases
Show description for 9c0a6e7
jeffbski
committed
9c0a6e7
View commit details
Copy full SHA for 9c0a6e7
View code at this point
Browse repository at this point
Commits on Jul 22, 2015
Convert boolean arguments to boolean values
Show description for 8f3dc27
SanjoSolutions
committed
8f3dc27
View commit details
Copy full SHA for 8f3dc27
View code at this point
Browse repository at this point
Commits on Mar 10, 2015
if the previous value was a boolean, without an default (or with an alias) don't make an array either
dominictarr
committed
e5f419a
View commit details
Copy full SHA for e5f419a
View code at this point
Browse repository at this point
check that they type of a value is a boolean, not just that it is currently set to a boolean
dominictarr
committed
6863198
View commit details
Copy full SHA for 6863198
View code at this point
Browse repository at this point
Commits on Aug 11, 2014
add support for handling "unknown" options not registered with the parser.
caitp
authored and
James Halliday
committed
6f3cc5d
View commit details
Copy full SHA for 6f3cc5d
View code at this point
Browse repository at this point
added stopEarly option
jdiamond
authored and
James Halliday
committed
471c7e4
View commit details
Copy full SHA for 471c7e4
View code at this point
Browse repository at this point
Commits on Jun 19, 2014
support all-boolean mode
max-mapper
authored and
James Halliday
committed
450a97f
View commit details
Copy full SHA for 450a97f
View code at this point
Browse repository at this point
Commits on May 12, 2014
Provide a mechanism to segregate -- arguments
ELLIOTTCABLE
authored and
James Halliday
committed
ce4a1e6
View commit details
Copy full SHA for ce4a1e6
View code at this point
Browse repository at this point
Commits on May 11, 2014
aliased values treated as strings
Trevor Senior
authored and
James Halliday
committed
1ab743b
View commit details
Copy full SHA for 1ab743b
View code at this point
Browse repository at this point
Commits on May 8, 2014
Eliminate `longest` fn.
Show description for 824f642
Francis
authored and
James Halliday
committed
824f642
View commit details
Copy full SHA for 824f642
View code at this point
Browse repository at this point
Commits on Feb 21, 2014
handle joined single letters
Trevor Senior
authored and
James Halliday
committed
66c248f
View commit details
Copy full SHA for 66c248f
View code at this point
Browse repository at this point
return '' if flag is string and empty
Trevor Senior
authored and
James Halliday
committed
fa63ed4
View commit details
Copy full SHA for fa63ed4
View code at this point
Browse repository at this point
Commits on Feb 9, 2014
another swap of .test for .match
James Halliday
committed
d1da408
View commit details
Copy full SHA for d1da408
View code at this point
Browse repository at this point
use .test() instead of .match() to not crash on non-string values in the arguments array
James Halliday
committed
7e0d1ad
View commit details
Copy full SHA for 7e0d1ad
View code at this point
Browse repository at this point
Commits on Sep 19, 2013
Improve '--' handling.
Show description for b11822c
m1kc
authored and
James Halliday
committed
b11822c
View commit details
Copy full SHA for b11822c
View code at this point
Browse repository at this point
Commits on Sep 12, 2013
fix for the dot test
James Halliday
committed
6a095f1
View commit details
Copy full SHA for 6a095f1
View code at this point
Browse repository at this point
Commits on Aug 28, 2013
allow dotted aliases & defaults
coleste
authored and
James Halliday
committed
321c33e
View commit details
Copy full SHA for 321c33e
View code at this point
Browse repository at this point
Commits on Jun 25, 2013
default bool test was wrong, not the code
James Halliday
committed
1b9f5db
View commit details
Copy full SHA for 1b9f5db
View code at this point
Browse repository at this point
fixed the numeric test
James Halliday
committed
6b034f3
View commit details
Copy full SHA for 6b034f3
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.