@bangerpage/cli 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sotaro Karasawa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,16 @@
1
+ Banger
2
+ Copyright (c) 2026 Sotaro Karasawa
3
+ Licensed under the MIT License (see LICENSE).
4
+ The name "Banger" and the Banger logos are not licensed under the MIT License.
5
+
6
+ This product bundles Apache ECharts, whose NOTICE is reproduced below as
7
+ required by Section 4(d) of the Apache License 2.0.
8
+
9
+ Apache ECharts
10
+ Copyright 2017-2026 The Apache Software Foundation
11
+
12
+ This product includes software developed at
13
+ The Apache Software Foundation (https://www.apache.org/).
14
+
15
+ The license texts and copyright notices of the third-party software bundled
16
+ into this package are listed in THIRD-PARTY-LICENSES.txt of each package.
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # @bangerpage/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The `banger` command for [Banger](https://github.com/bangerpage/banger) presentations.
4
+
5
+ ```
6
+ npm install -g @bangerpage/cli
7
+ banger init my-talk # write my-talk/index.html from the starter
8
+ cd my-talk
9
+ banger preview # preview with live reload
10
+ banger check # list the problems in every stop; exits 1 when there is any
11
+ banger snap # every stop as a 1920x1080 PNG
12
+ banger export --pdf # one PDF page per stop
13
+ banger skill install # give Claude Code the skill for writing decks
14
+ ```
15
+
16
+ The CLI renders the deck with the `@bangerpage/core` it depends on and drives Chrome through `playwright-core`. If no browser is found it prints the command to install one. All commands and options are in the repository README.
17
+
18
+ License: MIT.
package/dist/args.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { type ParseArgsConfig } from "node:util";
2
+ /** `util.parseArgs` in strict mode; its errors are usage errors (exit code 2). */
3
+ export declare function parseArgsStrict<const T extends NonNullable<ParseArgsConfig["options"]>>(argv: string[], options: T): {
4
+ values: T extends import("util").ParseArgsOptionsConfig ? { -readonly [LongOption in keyof T]?: { [LongOption_2 in keyof T]: T[LongOption_2]["multiple"] extends infer T_1 ? T_1 extends T[LongOption_2]["multiple"] ? T_1 extends false ? T[LongOption_2]["type"] extends "string" ? string : T[LongOption_2]["type"] extends "boolean" ? boolean : string | boolean : T_1 extends true ? (T[LongOption_2]["type"] extends "string" ? string : T[LongOption_2]["type"] extends "boolean" ? boolean : string | boolean)[] : T[LongOption_2]["type"] extends "string" ? string : T[LongOption_2]["type"] extends "boolean" ? boolean : string | boolean : never : never; }[LongOption] | undefined; } & { [LongOption_1 in keyof T as T[LongOption_1]["default"] extends {} ? LongOption_1 : never]: { [LongOption_3 in keyof T]: T[LongOption_3]["multiple"] extends infer T_1 ? T_1 extends T[LongOption_3]["multiple"] ? T_1 extends false ? T[LongOption_3]["type"] extends "string" ? string : T[LongOption_3]["type"] extends "boolean" ? boolean : string | boolean : T_1 extends true ? (T[LongOption_3]["type"] extends "string" ? string : T[LongOption_3]["type"] extends "boolean" ? boolean : string | boolean)[] : T[LongOption_3]["type"] extends "string" ? string : T[LongOption_3]["type"] extends "boolean" ? boolean : string | boolean : never : never; }[LongOption_1]; } extends infer P ? { [K in keyof P]: P[K]; } : never : {};
5
+ positionals: string[];
6
+ };
7
+ /** The deck file from the positionals; with none, `index.html` in the working directory. */
8
+ export declare function deckFile(positionals: string[], usage: string): string;