0.3.4 • Published 1 year ago
@clack/core v0.3.4
@clack/core
Clack contains low-level primitives for implementing your own command-line applications.
Currently, TextPrompt
, SelectPrompt
, and ConfirmPrompt
are exposed as well as the base Prompt
class.
Each Prompt
accepts a render
function.
import { TextPrompt, isCancel } from '@clack/core';
const p = new TextPrompt({
render() {
return `What's your name?\n${this.valueWithCursor}`;
},
});
const name = await p.prompt();
if (isCancel(name)) {
process.exit(0);
}
0.3.4
1 year ago
0.3.3
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.1
2 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.1.0
3 years ago
0.1.2
3 years ago
0.2.0
2 years ago
0.1.1
3 years ago
0.1.8
2 years ago
0.1.7
2 years ago
0.1.9
2 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
2 years ago
0.1.5
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago