@trenskow/reader 0.1.0 → 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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,7 +41,7 @@ const data = await interview({
41
41
  // schema
42
42
  'username': {
43
43
  type: String,
44
- name: 'Username',
44
+ label: 'Username',
45
45
  description: 'Enter your username.',
46
46
  type: String,
47
47
  required: true,
@@ -49,7 +49,7 @@ const data = await interview({
49
49
  },
50
50
  'password': {
51
51
  type: String,
52
- name: 'Password',
52
+ label: 'Password',
53
53
  description: 'Enter your password.',
54
54
  type: String,
55
55
  required: true,
@@ -78,7 +78,7 @@ In addition to the build-in validators of isvalid, the following is also support
78
78
 
79
79
  | Name | Description | Type | Default value |
80
80
  | ------------- | ----------------------------------------------------------- | :-------: | :-----------: |
81
- | `name` | The string to print before the user input. | `String` | |
81
+ | `label` | The string to print before the user input. | `String` | |
82
82
  | `description` | The string to print above the question. | `String` | |
83
83
  | `silent` | Indicates if the property is private (does not echo input). | `Boolean` | `false` |
84
84
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/reader",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A simple package to ask questions of a stream.",
5
5
  "main": "index.js",
6
6
  "type": "module",