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

Function stdin

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected