Được TopGit lập chỉ mục từ metadata GitHub: jorgebucaran/getopts có 633 sao, viết chủ yếu bằng JavaScript. Node.js CLI options parser
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Lightweight drop-in replacement for minimist and clones.
Small (180 LOC), focused, no dependencies.
Up to 6x faster than alternatives!
Break up command-line arguments into key-value pairs for easy look-up and retrieval. Built upon utility conventions that have been used for decades, Getopts sane defaults help you write CLI tools that look and feel like the real deal.
A short option consists of a - followed by a single alphabetic character. Multiple options can be grouped together without spaces. Short options are boolean by default unless followed by an operand (non-option) or if adjacent to any non-alphabetic characters:
The first operand following an option will be used as its value. Use opts.boolean to specify that an option should be parsed as a boolean regardless, causing the following argument to be treated as an operand instead.
Parse command-line arguments. Returns an object mapping argument names to their values.
argv[]
An array of arguments, usually process.argv.
opts.alias
An object of option aliases. An alias can be a string or an array of strings. Aliases let you declare substitute names for an option, e.g., the short (abbreviated) and long (canonical) variations.
An array of flags to parse as strings. In the example below, t is parsed as a string, causing all adjacent characters to be treated as a single value and not as individual options.
We call this function for each unknown option. Return false to discard the option. Unknown options are those that appear in the arguments array, but are not in opts.string, opts.boolean, opts.default, or opts.alias.
jorgebucaran/getopts thuộc nhóm Backend trên TopGit, cùng 4 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về jorgebucaran/getopts ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/jorgebucaran/getopts là nguồn chính thức.
jorgebucaran/getopts có bao nhiêu sao?
jorgebucaran/getopts có 633 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/jorgebucaran/getopts. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
jorgebucaran/getopts có phải mã nguồn mở không?
Có — jorgebucaran/getopts phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/jorgebucaran/getopts.
jorgebucaran/getopts có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho jorgebucaran/getopts. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
jorgebucaran/getopts là gì?
jorgebucaran/getopts (jorgebucaran/getopts) là dự án JavaScript trên GitHub. Theo mô tả gốc: Node.js CLI options parser
jorgebucaran/getopts so với các dự án Backend khác thế nào?
jorgebucaran/getopts được TopGit xếp vào nhóm Backend, với 633 sao GitHub và viết bằng JavaScript. Xem trang chủ đề Backend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về getopts?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về getopts.