MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / stdin

Function stdin

@commitlint/cli/src/cli.ts:178–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176});
177
178async function stdin() {
179 let result = "";
180
181 if (process.stdin.isTTY) {
182 return result;
183 }
184
185 process.stdin.setEncoding("utf8");
186
187 for await (const chunk of process.stdin) {
188 result += chunk;
189 }
190
191 return result;
192}
193
194type MainArgsObject = {
195 [key in keyof Arguments<CliFlags>]: Arguments<CliFlags>[key];

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected