Bug#1140895: ITP: node-type-flag -- Typed command-line arguments parser for Node.js

[email protected]
Newsgroups gmane.linux.debian.devel.general
Message-ID <b99d2b95186a10827a5882534709fcee__22082.8382809245$1782615938$gmane$org@nahmias.net>
Package: wnpp
Severity: wishlist
Owner: Joseph Nahmias <[email protected]>
Control: block 1140894 by -1
X-Debbugs-CC: [email protected], Hiroki Osame <[email protected]>, [email protected]

* Package name    : node-type-flag
  Version         : 4.5.0
  Upstream Author : Hiroki Osame <[email protected]>
* URL             : https://github.com/privatenumber/type-flag
* License         : Expat
  Programming Lang: JavaScript
  Description     : Typed command-line arguments parser for Node.js

 Tiny CLI flag parser whose schema returns TypeScript-inferred application
 values. Use parser functions like Number, Date, enum validators, or
 object builders, then read clean output from parsed.flags. No
 dependencies & tree-shakable (Max 1.4 kB).
 .
 Features:
 .
  - App-ready values: parser functions return numbers, dates, enums,
    objects, nullable values, or validated strings.
  - Readable schemas: keep type, alias, and default next to the app key
    they configure.
  - TypeScript confidence: bundled types infer flags from parser return
    types and defaults.
  - Forwarding wrappers: known flags, unknown flags, positionals, and
    leftover argv stay easy to separate.
  - CLI-friendly naming: camelCase schema keys accept kebab-case input
    like --some-flag.
 .
 Node.js is an event-based server-side JavaScript engine.

dep for cleye
i plan to maintain this under the js-team
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.